aboutsummaryrefslogtreecommitdiff
path: root/apps/openmb/renderer/primitives.hpp
blob: bd07c024837ad99677369fd40807afc9db7c2393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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