From 71baed6f2ceb93ee8b3830b3049ad9487e5de234 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 9 Jul 2025 15:59:10 +0200 Subject: checkpoint --- code/handmade.h | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'code/handmade.h') 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 -- cgit v1.2.3