summaryrefslogtreecommitdiff
path: root/src/cube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cube.cpp')
-rw-r--r--src/cube.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cube.cpp b/src/cube.cpp
new file mode 100644
index 0000000..fddc601
--- /dev/null
+++ b/src/cube.cpp
@@ -0,0 +1,6 @@
+#include "cube.hpp"
+
+Cube::Cube() {
+ for (std::uint8_t i = 0; i < 8; ++i)
+ m_vertices.add({(i >> 2) & 1, (i >> 1) & 1, i & 1});
+}