From 234fb5416e3008544c7a1755d9e26d1d3d5a0549 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Thu, 16 Oct 2025 01:55:38 -0400 Subject: texture don't worky --- state.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'state.h') diff --git a/state.h b/state.h index d75bac2..4226711 100644 --- a/state.h +++ b/state.h @@ -18,6 +18,11 @@ #define MAX(a, b) (((a) > (b)) ? (a) : (b)) +typedef struct { + GLuint vbo, ebo, vao; + uint32_t numElements; +} text_buffer_t; + typedef struct { float advance_x, advance_y; uint32_t bitmap_width, bitmap_height; @@ -67,19 +72,23 @@ typedef struct { EGLConfig egl_config; EGLContext egl_context; - // state - char* input_buffer; - uint32_t width, height; + // graphics + GLuint text_shader; + GLuint screen_size_uniform; + GLuint offset_uniform; + text_buffer_t input_buffer_text; + // fonts FT_Library ft_library; FT_Face ft_face; FT_Int32 load_flags; - atlas_t atlas; - bool running; - + // state + char* input_buffer; + uint32_t width, height; item_t* items; + bool running; } client_state; -- cgit v1.2.3