mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
abstract away the text instance dynamic array stuff and pass the correct shader when drawing quads/circles/triangles
This commit is contained in:
@@ -23,11 +23,11 @@ typedef struct TextInstance {
|
||||
float model[4][4];
|
||||
} TextInstance;
|
||||
|
||||
typedef struct Text {
|
||||
TextInstance *instance_data;
|
||||
int instance_count;
|
||||
int instance_capacity;
|
||||
} Text;
|
||||
typedef struct TextInstanceList {
|
||||
TextInstance *data;
|
||||
int size;
|
||||
int capacity;
|
||||
} TextInstanceList;
|
||||
|
||||
typedef struct Context {
|
||||
bool should_quit;
|
||||
@@ -35,7 +35,7 @@ typedef struct Context {
|
||||
Size screen_size;
|
||||
Size window_size;
|
||||
ZephFont font;
|
||||
Text texts;
|
||||
TextInstanceList texts;
|
||||
|
||||
Matrix4x4 projection;
|
||||
} Context;
|
||||
|
||||
Reference in New Issue
Block a user