diff options
author | Krow Savcik <krow@savcik.xyz> | 2023-12-25 12:20:59 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2023-12-25 12:20:59 +0200 |
commit | fb26949fe3c1b6145f1c77af2198d999a856cd37 (patch) | |
tree | 4c73c35d0fa4d6083373a0369c47bd5a3be0d885 /sim.h |
initial commit
Diffstat (limited to 'sim.h')
-rw-r--r-- | sim.h | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +typedef union { + int i; + unsigned int u; + float f; + const void *v; + const char *s; +} Arg; + +typedef struct { + float x, y, z; +} Point; + +typedef struct { + Point pos; + float azim, rad; +} Camera; + +typedef struct { + Point p[3]; + unsigned int col; +} Triangle; + +extern Camera cam; +extern float hfov, vfov; +extern void *ren; |