diff options
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; |