6 Mesh::Mesh(eastl::vector<Vertex> vertices, eastl::vector<unsigned> indices)
16 void Mesh::SetUpMesh()
20 Mesh::~Mesh() noexcept
47 if (
name != other.
name)
return false;
49 size_t thisVerticesSize =
vertices.size();
50 size_t otherVerticesSize = other.
vertices.size();
52 if (thisVerticesSize != otherVerticesSize)
return false;
54 size_t thisIndicesSize =
indices.size();
55 size_t otherIndicesSize = other.
indices.size();
57 if (thisIndicesSize != otherIndicesSize)
return false;
59 for (
size_t i = 0; i < thisIndicesSize; ++i)
64 for (
size_t i = 0; i < thisVerticesSize; ++i)
78 size_t thisVerticesSize =
vertices.size();
79 size_t otherVerticesSize = other.
vertices.size();
81 if (thisVerticesSize != otherVerticesSize)
return true;
83 size_t thisIndicesSize =
indices.size();
84 size_t otherIndicesSize = other.
indices.size();
86 if (thisIndicesSize != otherIndicesSize)
return true;
88 for (
size_t i = 0; i < thisIndicesSize; ++i)
93 for (
size_t i = 0; i < thisVerticesSize; ++i)
eastl::vector< unsigned > indices
The indices of this mesh.
uint64_t GetVBO() const
This method allows you to get the VBO of this mesh.
uint64_t GetEBO() const
This method allows you to get the EBO of this mesh.
bool operator!=(Mesh &other)
This method allows you to compare a mesh with another mesh.
eastl::vector< Vertex > vertices
The vertices of this mesh.
eastl::string name
The name of this mesh.
uint64_t GetVAO() const
This method allows you to get the VAO of this mesh.
This object is used to store data regarding a mesh. NOTE: only the resource manager is allowed to cre...
bool operator==(Mesh &other)
This method allows you to compare a mesh with another mesh.
uint64_t GetUBO() const
This method allows you to get the UBO of this mesh.