diff options
| author | aura <nw@moneybot.cc> | 2026-03-10 05:18:33 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-10 05:18:33 +0100 |
| commit | 30151d75dddd651faa1b27148a052ced7d0f190a (patch) | |
| tree | 30b9374d59ecdd83296f7a2b7aa008340b95daf5 /src/render/gl_2d_font.h | |
| parent | 31b77ed2e0c037e5718b9ecd06d3941600cc8815 (diff) | |
2d batch rendering
Diffstat (limited to 'src/render/gl_2d_font.h')
| -rw-r--r-- | src/render/gl_2d_font.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/gl_2d_font.h b/src/render/gl_2d_font.h index 71154c0..d0c9a71 100644 --- a/src/render/gl_2d_font.h +++ b/src/render/gl_2d_font.h @@ -2,7 +2,7 @@ #include <ft2build.h> #include FT_FREETYPE_H -#include "gl.h" +#include "gl_2d.h" #include "../util/thread.h" extern THREAD_MUTEX font_mutex; @@ -38,6 +38,7 @@ GL_FONT* gl_font_create( GL_DATA* gl, const char* path, I32 size ); void gl_font_destroy( GL_DATA* gl, GL_FONT* font ); void gl_font_draw( GL_FONT* font, GL_SHADER_PROGRAM* shader, VEC2 pos, const char* text, CLR color, F32 scale = 1.0f ); +void gl_font_draw( GL_FONT* font, GL_BATCH2D* batch, VEC2 pos, const char* text, CLR color, F32 scale = 1.0f ); void gl_font_textured( GL_FONT* font, GL_SHADER_PROGRAM* shader, |
