diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-08-21 20:57:31 +0200 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-08-21 20:57:31 +0200 |
commit | 55a8e6f345ee2ae35e2c0eaa8bc8b5fc0a5a7990 (patch) | |
tree | a1f4970c3692b796516dae51127cc9de19578fc6 /code/handmade.h | |
parent | afd0a65a0d113f90bddf9eb2c9db228b40eb8621 (diff) |
checkpoint
Diffstat (limited to 'code/handmade.h')
-rw-r--r-- | code/handmade.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/code/handmade.h b/code/handmade.h index 84292d6..123b857 100644 --- a/code/handmade.h +++ b/code/handmade.h @@ -73,6 +73,7 @@ struct color_rgb r32 E[3]; }; }; +#define color_rgb(A) color_rgb{(A), (A), (A)} #define Max(A, B) (((A) > (B)) ? (A) : (B)) #define Min(A, B) (((A) < (B)) ? (A) : (B)) @@ -130,8 +131,6 @@ operator-(color_rgb A) return Result; } -#define color_rgb(A) color_rgb{(A), (A), (A)} - struct game_font { stbtt_fontinfo Info; @@ -147,7 +146,9 @@ struct game_state u32 PatternGrid[6][5]; u32 SelectedColor; u32 ExportedPatternIndex; - char WordleWord[WORDLE_LENGTH]; + // TODO(luca): There is no need for utf8 since we know it will be between a-z. We could use a single byte string and convert to char when appending to the input buffer. + // But the only benefit would be storing less bytes which isn't really a big deal for 5 characters. + rune WordleWord[WORDLE_LENGTH]; game_font RegularFont; game_font ItalicFont; |