aboutsummaryrefslogtreecommitdiff
path: root/apps/openmb/renderer/primitives.hpp
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /apps/openmb/renderer/primitives.hpp
move to own git serverHEADmaster
Diffstat (limited to 'apps/openmb/renderer/primitives.hpp')
-rw-r--r--apps/openmb/renderer/primitives.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/openmb/renderer/primitives.hpp b/apps/openmb/renderer/primitives.hpp
new file mode 100644
index 0000000..bd07c02
--- /dev/null
+++ b/apps/openmb/renderer/primitives.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "Mesh.hpp"
+
+namespace renderer
+{
+ namespace primitives
+ {
+ Mesh makeCube();
+ Mesh makeTexturedCube();
+ Mesh makeTexturedCubeWithNormals();
+ Mesh makeGrid( int halfSize, float spacing );
+ Mesh makeTexturedGrid( int width, int depth, float tileSize );
+ Mesh makeTexturedGridWithNormals( int width, int depth, float tileSize );
+ Mesh makeTexturedCubeGrid( int width, int depth, float tileSize );
+ Mesh makeTexturedCubeGridWithNormals( int width, int depth, float tileSize );
+ Mesh makeTexturedWall( int length, int height, float tileSize, bool alongX = true, float fixedCoord = 0.0f );
+ Mesh makeTexturedWallWithNormals( int length, int height, float tileSize, bool alongX = true,
+ float fixedCoord = 0.0f );
+ } // namespace primitives
+
+} // namespace renderer