aboutsummaryrefslogtreecommitdiff
path: root/state.h
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-16 01:55:38 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-16 01:59:35 -0400
commit234fb5416e3008544c7a1755d9e26d1d3d5a0549 (patch)
tree7f159d4d2039e9d14274c7c97649092648c229aa /state.h
parentce56d992214dfe793186f614d1759cd2ba061ad4 (diff)
texture don't worky
Diffstat (limited to 'state.h')
-rw-r--r--state.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/state.h b/state.h
index d75bac2..4226711 100644
--- a/state.h
+++ b/state.h
@@ -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;