Hymn to Beauty
C++ 3D Engine
MeshData.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cinttypes>
4#include <glm/glm.hpp>
5
6namespace Video {
7namespace Geometry {
8namespace VertexType {
9struct StaticVertex;
10} // namespace VertexType
11} // namespace Geometry
12} // namespace Video
13namespace Geometry {
15struct MeshData {
17 ~MeshData();
18
20 uint32_t parent;
21
23 uint32_t numVertices;
24
26 uint32_t numIndices;
27
29 glm::vec3 aabbDim;
30
32 glm::vec3 aabbOrigin;
33
35 glm::vec3 aabbMinpos;
36
38 glm::vec3 aabbMaxpos;
39
42
44 uint32_t* indices = nullptr;
45
47 bool CPU;
48
50 bool GPU;
51};
52} // namespace Geometry
Definition: AssetEditor.hpp:5
Definition: Editor.hpp:18
Mesh data.
Definition: MeshData.hpp:15
uint32_t * indices
Array of indices.
Definition: MeshData.hpp:44
Video::Geometry::VertexType::StaticVertex * staticVertices
Static vertices.
Definition: MeshData.hpp:41
bool CPU
Store in cpu?
Definition: MeshData.hpp:47
uint32_t parent
Parent id of mesh.
Definition: MeshData.hpp:20
uint32_t numIndices
Number of indicies.
Definition: MeshData.hpp:26
bool GPU
Store in gpu?
Definition: MeshData.hpp:50
glm::vec3 aabbDim
Axis aligned bound box dimensions.
Definition: MeshData.hpp:29
glm::vec3 aabbMaxpos
Maximum position of axis aligned bound box.
Definition: MeshData.hpp:38
glm::vec3 aabbOrigin
Axis aligned bound box origin.
Definition: MeshData.hpp:32
glm::vec3 aabbMinpos
Minimum position of axis aligned bound box.
Definition: MeshData.hpp:35
uint32_t numVertices
Number of vertices.
Definition: MeshData.hpp:23
~MeshData()
Destructor.
Definition: MeshData.cpp:6
Vertex type used for static meshes.
Definition: StaticVertex.hpp:13