int main( int argc, const char *argv[] )
{
vg_log_init();
+
+#if 0
+ vg_stack_allocator s0;
+ vg_stack_init( &s0, NULL, VG_MB(2), NULL );
+ u32 size0;
+ void *buf0 = vg_file_read( &s0, "content_skaterift/textures/prem.qoi", &size0, 0 );
+ vg_mem_dumphex( stdout, buf0, 0, 1024 );
+
+ vg_stack_allocator s1;
+ vg_stack_init( &s1, NULL, VG_MB(2), NULL );
+ u32 size1;
+ void *buf1 = vg_file_read( &s1, "content_skaterift/textures/guide_pump.qoi", &size1, 0 );
+
+ vg_mem_dumphex( stdout, buf1, 0, 1024 );
+
+ return 0;
+#endif
+
_vg_opt_init( argc, argv );
const char *arg;
static void _board_maker_load_template( void *_ )
{
THREAD_1;
- vg_stack_free( &_board_maker.template_stack );
+ vg_stack_clear( &_board_maker.template_stack );
mdl_context *mdl = &_board_maker.template_mdl;
mdl_open( mdl, _board_maker_template_paths[_board_maker.template_selection], &_board_maker.template_stack );
static void font3d_load( font3d *font, const char *mdl_path, void *alloc )
{
+ THREAD_1;
mdl_context *mdl = &font->mdl;
mdl_open( mdl, mdl_path, alloc );
mdl_load_metadata_block( mdl, alloc );
static void gui_init(void)
{
+ THREAD_1;
font3d_load( &gui.font, "models/rs_font.mdl", &vg.rtmem );
/* load icons */
void player_glide_bind(void)
{
+ THREAD_1;
f32 mass = 0.0f,k_density = 8.0f;
m3x3f I;
m3x3_zero( I );
void world_gen_entities_init( world_instance *world )
{
+ THREAD_1;
+
/* lights */
for( u32 j=0; j<af_arrcount(&world->ent_light); j ++ )
{
void world_gates_init(void)
{
+ THREAD_1;
vg_info( "world_gates_init\n" );
vg_stack_clear( &vg.scratch );
/* Loads textures from the pack file */
void world_gen_load_surfaces( world_instance *world )
{
+ THREAD_1;
if( _world.loader_preview_mode )
{
world->texture_count = 0;
v4_copy( route->colour, colour );
v3_muls( colour, 1.6666f, colour );
gui_icon_setcolour( colour );
- respawn_map_draw_icon( &world_map.final_cam, k_gui_icon_rift_run_2d, route->anon.transform.co, 0.5f );
+ respawn_map_draw_icon( &world_map.final_cam, k_gui_icon_run, route->anon.transform.co, 0.5f );
}
}
}
void world_render_init(void)
{
+ THREAD_1;
vg_info( "Loading world resources\n" );
vg_stack_clear( &vg.scratch );
void world_sfd_init(void)
{
+ THREAD_1;
vg_info( "world_sfd_init\n" );
vg_stack_clear( &vg.scratch );