X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_sfd.h;h=88a86396e5fd700fdaef3fc0108dcf3301c94cb3;hb=919d1227839218c57430fe9cab8f74d594c7bd14;hp=9f41992bc84de7d43e42634797bd9d22038cc7a1;hpb=f7db507815e2822d971031c30f25e02b45e9c914;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_sfd.h b/world_sfd.h index 9f41992..88a8639 100644 --- a/world_sfd.h +++ b/world_sfd.h @@ -7,8 +7,11 @@ #include "world.h" +#if 0 +#if 0 #include "shaders/scoretext.h" #include "shaders/vblend.h" +#endif vg_tex2d tex_scoretext = { .path = "textures/scoretext.qoi", .flags = VG_TEXTURE_CLAMP|VG_TEXTURE_NEAREST }; @@ -56,22 +59,22 @@ float sfd_encode_glyph( char c ) VG_STATIC void sfd_encode( u32 row, const char *str ) { int end=0; - u32 row_h = world.sfd.h -1 -row; + u32 row_h = world_global.sfd.h -1 -row; - for( int i=0; ivertex_count; - scene_add_submesh( sc, mboard, card, identity ); + scene_add_mdl_submesh( sc, mboard, card, identity ); +#if 0 for( int j=0; jvertex_count; j++ ) { mdl_vert *vert = &sc->arrvertices[ vert_start+j ]; @@ -198,12 +207,13 @@ VG_STATIC void world_sfd_init(void) vert->colour[0] = 0.0f; vert->colour[1] = i*36; } +#endif } vg_acquire_thread_sync(); { - scene_upload( sc, &world.sfd.mesh_display ); - mdl_unpack_submesh( mboard, &world.sfd.mesh_base, backer ); + scene_upload( sc, &world_global.sfd.mesh_display ); + mdl_unpack_submesh( mboard, &world_global.sfd.mesh_base, backer ); vg_tex2d_init( (vg_tex2d *[]){ &tex_scoretext }, 1 ); } @@ -212,12 +222,14 @@ VG_STATIC void world_sfd_init(void) int w = 27, h = 13; - world.sfd.w = w; - world.sfd.h = h; - world.sfd.buffer = vg_linear_alloc( vg_mem.rtmemory, 2*w*h*sizeof(float) ); + world_global.sfd.w = w; + world_global.sfd.h = h; + world_global.sfd.buffer = + vg_linear_alloc( vg_mem.rtmemory, 2*w*h*sizeof(float) ); for( int i=0; i