Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
Mesh.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "GraphicsTypes.hpp"
3 
4 namespace TestValues
5 {
6  // Simple cube mesh
7  const std::vector<SimpleVertex> kSimpleCubeVertices
8  {
9  { glm::vec3(-0.5f, -0.5f, -0.5f), glm::vec3(0.f, 0.f, 0.f)},
10  { glm::vec3(-0.5f, 0.5f, -0.5f), glm::vec3(0.f, 1.f, 0.f)},
11  { glm::vec3(0.5f, 0.5f, -0.5f), glm::vec3(1.f, 1.f, 0.f)},
12  { glm::vec3(0.5f, -0.5f, -0.5f), glm::vec3(1.f, 0.f, 0.f)},
13  { glm::vec3(-0.5f, -0.5f, 0.5f), glm::vec3(0.f, 0.f, 1.f)},
14  { glm::vec3(-0.5f, 0.5f, 0.5f), glm::vec3(0.f, 1.f, 1.f)},
15  { glm::vec3(0.5f, 0.5f, 0.5f), glm::vec3(1.f, 1.f, 1.f)},
16  { glm::vec3(0.5f, -0.5f, 0.5f), glm::vec3(1.f, 0.f, 1.f)}
17  };
18 
19 
20  const std::vector<uint32_t> kSimpleCubeIndices
21  { // clockwise winding order
22  2, 1, 0, 0, 3, 2,
23  5, 6, 4, 6, 7, 4,
24  0, 1, 5, 5, 4, 0,
25  2, 3, 7, 2, 7, 6,
26  1, 2, 6, 6, 5, 1,
27  7, 3, 0, 7, 0, 4,
28  };
29 
30  const std::vector<Vertex> GetTestVertices();
31 
32  const std::vector<uint32_t> GetTestIndices();
33 
34  const ImageData GetTestTexture();
35 }
36 
38 {
39 public:
40 
41 private:
42  std::vector<SimpleVertex> verticesM;
43  std::vector<uint32_t> indicesM;
44 };
45 
Definition: Mesh.hpp:38
std::vector< SimpleVertex > verticesM
Definition: Mesh.hpp:42
std::vector< uint32_t > indicesM
Definition: Mesh.hpp:43
Definition: Mesh.hpp:5
const std::vector< uint32_t > kSimpleCubeIndices
Definition: Mesh.hpp:21
const ImageData GetTestTexture()
Definition: Mesh.cpp:1087
const std::vector< uint32_t > GetTestIndices()
Definition: Mesh.cpp:17
const std::vector< SimpleVertex > kSimpleCubeVertices
Definition: Mesh.hpp:8
const std::vector< Vertex > GetTestVertices()
Definition: Mesh.cpp:3
Definition: BasicTypes.hpp:161