From fb26949fe3c1b6145f1c77af2198d999a856cd37 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Mon, 25 Dec 2023 12:20:59 +0200 Subject: initial commit --- sim.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sim.h (limited to 'sim.h') 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; -- cgit v1.2.3