#define SR_NETWORKED
#define VG_DEVWINDOW
-#include "common.h"
-#include "conf.h"
-#include "steam.h"
-#include "render.h"
-#include "audio.h"
-#include "world.h"
-#include "font.h"
-#include "player.h"
-#include "entity.c"
-#include "workshop.c"
+
+#define SKATERIFT_APPID 2103940
+
+#define VG_TIMESTEP_FIXED (1.0/60.0)
+#define VG_3D
+#define VG_GAME
+#define VG_MSG_V1_SUPPORT
+#define VG_LOG_SOURCE_INFO
+#include "vg/vg.h"
static int skaterift_loaded = 0;
+static char g_an_buffer[ 4096 ];
int main( int argc, char *argv[] )
{
vg_info(" | \\/ | | / | | \\ | / | \n" );
vg_info(" ' ' '--' [] '----- '----- ' ' '---' "
"SOFTWARE\n" );
-
- steam_init();
- vg_loader_step( NULL, steam_end );
}
VG_STATIC void skaterift_load_post( void *data, u32 len )
VG_STATIC void vg_update(void)
{
- steam_update();
}
VG_STATIC void vg_update_fixed(void)
VG_STATIC void vg_framebuffer_resize( int w, int h )
{
- render_fb_resize();
+ //render_fb_resize();
}
VG_STATIC void vg_render(void)
ui_rect quit_button;
ui_split( title, k_ui_axis_v, title[2]-title[3], 2, title, quit_button );
+ if( ui_button_text( quit_button, "x", 1 ) ){
+ ui_start_modal( g_an_buffer, UI_MODAL_GOOD );
+ }
+
+ ui_rect tbox;
+ ui_split( panel, k_ui_axis_h, 28, 0, tbox, panel );
+ ui_textbox( tbox, g_an_buffer, 4096, 0, NULL );
ui_dev_colourview();
}