work-in-progress for 3d triangle rendering

This commit is contained in:
2024-07-10 19:15:28 +03:00
parent e2ed4b2c2d
commit b280243d30
9 changed files with 300 additions and 23 deletions

View File

@@ -109,6 +109,19 @@ typedef struct fvec2 {
} t_fvec2;
/* a point in some three dimension space (floating point) */
/* y goes up, x goes to the right */
typedef struct fvec3 {
float x, y, z;
} t_fvec3;
/* a point in some space (short) */
typedef struct shvec2 {
short x, y;
} t_shvec2;
/* decrements an lvalue (which should be an int), stopping at 0 */
/* meant for tick-based timers in game logic */
/*