aboutsummaryrefslogtreecommitdiff
path: root/code/handmade.h
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-06-19 20:25:14 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-06-19 20:25:14 +0200
commitd97b49d3cda47d5b620378239bc57734ce0d2aa1 (patch)
treeea5eaa3f663946f5a00d2838eeb4c5fc2cde7e45 /code/handmade.h
parent74b55377cab5977cc551b7b67d1ddd5b4ae85929 (diff)
checkpoint
Diffstat (limited to 'code/handmade.h')
-rw-r--r--code/handmade.h31
1 files changed, 31 insertions, 0 deletions
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