HandmadeHero/docs/Day 042.md
Ed_ 4ab64e2c17 Day 42 complete
Found and fixed bugs with gencpp when generating the vector math stuff.
2023-10-22 22:00:29 -04:00

9 lines
453 B
Markdown

# Day 42
I decided to generate the vectors since I wanted f32 and s32 vectors. However, I didn't want to use templates.
I ended up messing aroudn with templates a bit for the `Zero(type)` macro which is just an alt for `type {}`.
Pattern is useful for other constant inits though (if I want to do it that way...)
Found bugs in gencpp which was nice!
Compressing the code with vector abstraction was nice, hopefuly these pixel will soon as well...