From 30151d75dddd651faa1b27148a052ced7d0f190a Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 10 Mar 2026 05:18:33 +0100 Subject: 2d batch rendering --- src/render/gl_2d_font.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/render/gl_2d_font.h') 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 #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, -- cgit v1.2.3