shader_model_font_uMdl( transform );
}
else if( render->shader == k_font_shader_world ){
-
-
- vg_info( "-----\n" );
- for( int i=0; i<4; i++ ){
- vg_info( PRINTF_v4f( prev_mtx[i] ) );
- }
-
shader_scene_font_uPvmPrev( prev_mtx );
shader_scene_font_uMdl( transform );
}
{
if( !text ) return 0.0f;
float width = 0.0f;
+
+ const u8 *buf = (const u8 *)text;
for( int i=0;; i++ ){
- u32 c = text[i];
+ u32 c = buf[i];
if(!c) break;
ent_glyph *glyph = font3d_glyph( font, variant_id, c );