mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
text instancing
This commit is contained in:
@@ -12,13 +12,8 @@ typedef struct Character {
|
||||
Vec2f tex_coords[4]; // the 4 corners of the character quad
|
||||
} Character;
|
||||
|
||||
typedef struct Characters {
|
||||
uint key;
|
||||
Character value;
|
||||
} Characters;
|
||||
|
||||
typedef struct ZephFont {
|
||||
Characters *characters;
|
||||
Character characters[128];
|
||||
unsigned int atlas_texture_id;
|
||||
} ZephFont;
|
||||
|
||||
@@ -71,5 +66,5 @@ void set_rotation_constraint(UIConstraints *constraints, float angle_d);
|
||||
void draw_quad(UIConstraints constraints, Color *color, float border_radius, Alignment align);
|
||||
void draw_circle(UIConstraints constraints, Color *color, Alignment align);
|
||||
void draw_triangle(UIConstraints constraints, Color *color, Alignment align);
|
||||
void draw_text(const uint* text, int font_size, UIConstraints constraints, Color *color, Alignment align);
|
||||
Sizef calculate_text_size(const uint *text, int font_size);
|
||||
void draw_text(const char* text, int font_size, UIConstraints constraints, Color *color, Alignment align);
|
||||
Sizef calculate_text_size(const char *text, int font_size);
|
||||
|
||||
Reference in New Issue
Block a user