10#include "../Utils.hpp"
13namespace Engine::Graphics {
36 float nx = 0.0f, ny = 0.0f, nz = 1.0f;
81 std::vector<Vertex> m_vertices;
82 std::vector<unsigned short> m_indices;
117 float* GetVertices();
124 unsigned long GetVertexCount();
132 unsigned short* GetIndices();
139 unsigned long GetIndexCount();
Success
A generic success type.
Definition Utils.hpp:29
A structure used to store mesh vertices.
Definition Mesh.hpp:34
void CalculateNormals(Vertex &v2, Vertex &v3)
Calculates the normal vector of the vertices.
Definition Mesh.cpp:10
bool operator==(const Vertex &rhs)
Checks if two vertices are equal.
Definition Mesh.cpp:29