X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=gui.h;fp=gui.h;h=5684e4c925860bed643eba6dc661aebdef40130e;hb=c2b59441df0383807ba093295af2e4400e552f39;hp=238d0fba76507c0c501f88b0f570e321039e5393;hpb=5bfb36032928ba9f8d12e72961af68bfab9ea648;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/gui.h b/gui.h index 238d0fb..5684e4c 100644 --- a/gui.h +++ b/gui.h @@ -135,7 +135,8 @@ void gui_draw(void) font3d_bind( &gui.font, &ortho ); shader_model_font_uColour( (v4f){1.2f,1.2f,1.2f,o} ); - font3d_simple_draw( &gui.font, 2, gui.location, &ortho, mmdl ); + font3d_simple_draw( &gui.font, 2, k_font_shader_default, + gui.location, &ortho, mmdl ); } font3d_bind( &gui.font, &ortho ); @@ -157,10 +158,12 @@ void gui_draw(void) shader_model_font_uColour( (v4f){1.0f,1.0f,1.0f,1.0f} ); - struct font3d_render render; - font3d_begin( &gui.font, 2, &ortho, mmdl, &render ); - - render.u8pch = (u8*)helper->bindstr; + struct font3d_render render = { + .font = &gui.font, + .variant_id = 2, + .shader = k_font_shader_default + }; + font3d_begin( helper->bindstr, &ortho, mmdl, &render ); font3d_draw( &render ); const char *make_smaller = "\x02\xaf\x03 ";