diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-16 01:55:38 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-16 01:59:35 -0400 |
| commit | 234fb5416e3008544c7a1755d9e26d1d3d5a0549 (patch) | |
| tree | 7f159d4d2039e9d14274c7c97649092648c229aa /state.h | |
| parent | ce56d992214dfe793186f614d1759cd2ba061ad4 (diff) | |
texture don't worky
Diffstat (limited to 'state.h')
| -rw-r--r-- | state.h | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -19,6 +19,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; int32_t bearing_x, bearing_y; @@ -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; |
