aboutsummaryrefslogtreecommitdiff
path: root/sim.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim.h')
-rw-r--r--sim.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/sim.h b/sim.h
new file mode 100644
index 0000000..b1a00e6
--- /dev/null
+++ b/sim.h
@@ -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;