From d97b49d3cda47d5b620378239bc57734ce0d2aa1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 19 Jun 2025 20:25:14 +0200 Subject: checkpoint --- code/handmade.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'code/handmade.h') diff --git a/code/handmade.h b/code/handmade.h index b807644..f64566b 100644 --- a/code/handmade.h +++ b/code/handmade.h @@ -47,10 +47,41 @@ struct loaded_bitmap u32 *Pixels; }; +struct color_rgb +{ + union + { + struct + { + r32 R; + r32 G; + r32 B; + }; + r32 E[3]; + }; +}; + +struct view +{ + u32 PointsToPixels; + + v2 SizePixels; + v2 SizePoints; + + v2 TopLeft; + v2 BottomRight; + // NOTE(luca): These pixels are added to points to center them when rendering. + v2 PointPad; + + v2 CenterOffset; +}; + struct game_state { r32 Slope; r32 Step; + r32 B; + r32 C; }; #define HANDMADE_H -- cgit v1.2.3