diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 01:35:50 +0100 |
| commit | 8329d42d3e592f4cd42cdfa586e2325ddc76c898 (patch) | |
| tree | dec7e2a733bfc6b6384936c1f3ed067a42b59bb9 /src/gui | |
| parent | 8ae8c85e9d3806cdb726e07f37e1b49484c5c48e (diff) | |
perf profiler, simplify 2d render, string struct, many small things
Diffstat (limited to 'src/gui')
| -rw-r--r-- | src/gui/base.cpp | 4 | ||||
| -rw-r--r-- | src/gui/view.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/base.cpp b/src/gui/base.cpp index 5d345d8..1e8a493 100644 --- a/src/gui/base.cpp +++ b/src/gui/base.cpp @@ -38,7 +38,7 @@ void gui_end() { void gui_draw( GAME_DATA* game ) { _gui.gl2d = game->shaders.gl2d; - _gui.gl2d_font = game->shaders.gl2d_texcoord; + _gui.gl2d_font = game->shaders.gl2d; _gui.windows.each( fn( GUI_WINDOW** w ) { GUI_WINDOW* wnd = *w; @@ -58,7 +58,7 @@ void gui_input( GAME_DATA* game ) { } } -void gui_onframe( GAME_DATA* game ) { +void gui_onframe( GAME_DATA* game ) { _profiled gui_run_callbacks(); gui_input( game ); diff --git a/src/gui/view.cpp b/src/gui/view.cpp index da470e7..d053f99 100644 --- a/src/gui/view.cpp +++ b/src/gui/view.cpp @@ -1,6 +1,7 @@ #include "base.h" +#include "../util/profiler.h" -void gui_view_draw_fn( void* ptr ) { +void gui_view_draw_fn( void* ptr ) { _profiled GUI_VIEW* view = (GUI_VIEW*)ptr; I32 x = gui_relx( view ); |
