diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 20:57:06 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 20:59:39 +0200 |
| commit | e5af28536bfb0f4c9131df56d2009ba5196f5e3a (patch) | |
| tree | 3ab928f961a1ccd8440b070d7b57f79146457e8c /src/cube.h | |
| download | animtool-e5af28536bfb0f4c9131df56d2009ba5196f5e3a.tar.xz | |
init
Diffstat (limited to 'src/cube.h')
| -rw-r--r-- | src/cube.h | 45 |
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}}, +}; |
