summaryrefslogtreecommitdiff
path: root/src/cube.h
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-12 20:57:06 +0200
committerLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-12 20:59:39 +0200
commite5af28536bfb0f4c9131df56d2009ba5196f5e3a (patch)
tree3ab928f961a1ccd8440b070d7b57f79146457e8c /src/cube.h
downloadanimtool-e5af28536bfb0f4c9131df56d2009ba5196f5e3a.tar.xz
init
Diffstat (limited to 'src/cube.h')
-rw-r--r--src/cube.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/cube.h b/src/cube.h
new file mode 100644
index 0000000..1c12e10
--- /dev/null
+++ b/src/cube.h
@@ -0,0 +1,45 @@
+#include "draw.h"
+
+static const struct draw_vertex cube_verts[36] = {
+ {{-0.5, -0.5, -0.5}, /* {+0.0, +0.0, -1.0}, */ {+1.0, +0.0}},
+ {{+0.5, +0.5, -0.5}, /* {+0.0, +0.0, -1.0}, */ {+0.0, +1.0}},
+ {{+0.5, -0.5, -0.5}, /* {+0.0, +0.0, -1.0}, */ {+0.0, +0.0}},
+ {{+0.5, +0.5, -0.5}, /* {+0.0, +0.0, -1.0}, */ {+0.0, +1.0}},
+ {{-0.5, -0.5, -0.5}, /* {+0.0, +0.0, -1.0}, */ {+1.0, +0.0}},
+ {{-0.5, +0.5, -0.5}, /* {+0.0, +0.0, -1.0}, */ {+1.0, +1.0}},
+
+ {{-0.5, -0.5, +0.5}, /* {+0.0, +0.0, +1.0}, */ {+0.0, +0.0}},
+ {{+0.5, -0.5, +0.5}, /* {+0.0, +0.0, +1.0}, */ {+1.0, +0.0}},
+ {{+0.5, +0.5, +0.5}, /* {+0.0, +0.0, +1.0}, */ {+1.0, +1.0}},
+ {{+0.5, +0.5, +0.5}, /* {+0.0, +0.0, +1.0}, */ {+1.0, +1.0}},
+ {{-0.5, +0.5, +0.5}, /* {+0.0, +0.0, +1.0}, */ {+0.0, +1.0}},
+ {{-0.5, -0.5, +0.5}, /* {+0.0, +0.0, +1.0}, */ {+0.0, +0.0}},
+
+ {{-0.5, +0.5, +0.5}, /* {-1.0, +0.0, +0.0}, */ {+1.0, +1.0}},
+ {{-0.5, +0.5, -0.5}, /* {-1.0, +0.0, +0.0}, */ {+0.0, +1.0}},
+ {{-0.5, -0.5, -0.5}, /* {-1.0, +0.0, +0.0}, */ {+0.0, +0.0}},
+ {{-0.5, -0.5, -0.5}, /* {-1.0, +0.0, +0.0}, */ {+0.0, +0.0}},
+ {{-0.5, -0.5, +0.5}, /* {-1.0, +0.0, +0.0}, */ {+1.0, +0.0}},
+ {{-0.5, +0.5, +0.5}, /* {-1.0, +0.0, +0.0}, */ {+1.0, +1.0}},
+
+ {{+0.5, +0.5, +0.5}, /* {+1.0, +0.0, +0.0}, */ {+0.0, +1.0}},
+ {{+0.5, -0.5, -0.5}, /* {+1.0, +0.0, +0.0}, */ {+1.0, +0.0}},
+ {{+0.5, +0.5, -0.5}, /* {+1.0, +0.0, +0.0}, */ {+1.0, +1.0}},
+ {{+0.5, -0.5, -0.5}, /* {+1.0, +0.0, +0.0}, */ {+1.0, +0.0}},
+ {{+0.5, +0.5, +0.5}, /* {+1.0, +0.0, +0.0}, */ {+0.0, +1.0}},
+ {{+0.5, -0.5, +0.5}, /* {+1.0, +0.0, +0.0}, */ {+0.0, +0.0}},
+
+ {{-0.5, -0.5, -0.5}, /* {+0.0, -1.0, +0.0}, */ {+1.0, +1.0}},
+ {{+0.5, -0.5, -0.5}, /* {+0.0, -1.0, +0.0}, */ {+0.0, +1.0}},
+ {{+0.5, -0.5, +0.5}, /* {+0.0, -1.0, +0.0}, */ {+0.0, +0.0}},
+ {{+0.5, -0.5, +0.5}, /* {+0.0, -1.0, +0.0}, */ {+0.0, +0.0}},
+ {{-0.5, -0.5, +0.5}, /* {+0.0, -1.0, +0.0}, */ {+1.0, +0.0}},
+ {{-0.5, -0.5, -0.5}, /* {+0.0, -1.0, +0.0}, */ {+1.0, +1.0}},
+
+ {{-0.5, +0.5, -0.5}, /* {+0.0, +1.0, +0.0}, */ {+0.0, +1.0}},
+ {{+0.5, +0.5, +0.5}, /* {+0.0, +1.0, +0.0}, */ {+1.0, +0.0}},
+ {{+0.5, +0.5, -0.5}, /* {+0.0, +1.0, +0.0}, */ {+1.0, +1.0}},
+ {{+0.5, +0.5, +0.5}, /* {+0.0, +1.0, +0.0}, */ {+1.0, +0.0}},
+ {{-0.5, +0.5, -0.5}, /* {+0.0, +1.0, +0.0}, */ {+0.0, +1.0}},
+ {{-0.5, +0.5, +0.5}, /* {+0.0, +1.0, +0.0}, */ {+0.0, +0.0}},
+};