diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-07-09 15:59:10 +0200 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-07-09 15:59:10 +0200 |
commit | 71baed6f2ceb93ee8b3830b3049ad9487e5de234 (patch) | |
tree | 51ebfc6f3775ba82d8f8fc8f76ae536227522a65 /code/handmade.h | |
parent | dd028b12f6cf44c20ecc57049eeac8fae52cd8e6 (diff) |
checkpoint
Diffstat (limited to 'code/handmade.h')
-rw-r--r-- | code/handmade.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/code/handmade.h b/code/handmade.h index f64566b..3cb98e1 100644 --- a/code/handmade.h +++ b/code/handmade.h @@ -10,6 +10,18 @@ #include "handmade_platform.h" #include "handmade_math.h" +#include "libs/stb_truetype.h" + +#define WORDLE_LENGTH 5 + +typedef enum +{ + SquareColor_Gray = 0, + SquareColor_Yellow = 1, + SquareColor_Green = 2, + SquareColor_Count +} square_colors; + struct memory_arena { memory_index Size; @@ -61,27 +73,18 @@ struct color_rgb }; }; -struct view +struct game_state { - u32 PointsToPixels; + u32 PatternGrid[6][5]; - v2 SizePixels; - v2 SizePoints; + u32 SelectedColor;; - v2 TopLeft; - v2 BottomRight; - // NOTE(luca): These pixels are added to points to center them when rendering. - v2 PointPad; + stbtt_fontinfo FontInfo; + s32 FontAscent; + s32 FontDescent; + s32 FontLineGap; + v2 FontBoundingBox[2]; - v2 CenterOffset; -}; - -struct game_state -{ - r32 Slope; - r32 Step; - r32 B; - r32 C; }; #define HANDMADE_H |