cOMS/models/object/Cube.h
Dennis Eichhorn 39fbcf4300
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Waiting to run
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
linux bug fixes
2025-03-22 01:10:19 +00:00

37 lines
783 B
C
Executable File

// 6 faces, 4 vertexes, 3 coordinates
positions = {
-1, -1, -1, -1, -1, +1, -1, +1, -1, -1, +1, +1,
+1, -1, -1, +1, -1, +1, +1, +1, -1, +1, +1, +1,
-1, +1, -1, -1, +1, +1, +1, +1, -1, +1, +1, +1,
-1, -1, -1, -1, -1, +1, +1, -1, -1, +1, -1, +1,
-1, -1, -1, -1, +1, -1, +1, -1, -1, +1, +1, -1,
-1, -1, +1, -1, +1, +1, +1, -1, +1, +1, +1, +1
};
// 6 faces 3 coordinates
normals = {
-1, 0, 0,
+1, 0, 0,
0, +1, 0,
0, -1, 0,
0, 0, -1,
0, 0, +1
};
indices = {
0, 3, 2, 0, 1, 3,
0, 3, 1, 0, 2, 3,
0, 3, 2, 0, 1, 3,
0, 3, 1, 0, 2, 3,
0, 3, 2, 0, 1, 3,
0, 3, 1, 0, 2, 3
};
flipped = {
0, 1, 2, 1, 3, 2,
0, 2, 1, 2, 3, 1,
0, 1, 2, 1, 3, 2,
0, 2, 1, 2, 3, 1,
0, 1, 2, 1, 3, 2,
0, 2, 1, 2, 3, 1
};