1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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;