diff options
Diffstat (limited to 'apps/openmb/renderer/primitives.hpp')
| -rw-r--r-- | apps/openmb/renderer/primitives.hpp | 22 |
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 |