17 TriFace(std::size_t index, std::array<math::Vector3R, 3> vertices);
19 void setTexCoords(std::array<math::Vector3R, 3> texCoords);
23 const std::array<math::Vector3R, 3>&
getVertices()
const;
24 const std::array<math::Vector3R, 3>&
getTexCoords()
const;
33 std::array<math::Vector3R, 3> m_vertices;
34 std::optional<std::array<math::Vector3R, 3>> m_uvws;
35 std::optional<std::array<math::Vector3R, 3>> m_normals;
40inline TriFace::TriFace(
const std::size_t index, std::array<math::Vector3R, 3> vertices) :
42 m_vertices(
std::move(vertices)),
49 m_uvws = std::move(texCoords);
54 m_normals = std::move(shadingNormals);
83 return m_uvws.has_value();
88 return m_normals.has_value();
const std::array< math::Vector3R, 3 > & getShadingNormals() const
Definition TriFace.h:74
const std::array< math::Vector3R, 3 > & getTexCoords() const
Definition TriFace.h:67
bool hasShadingNormals() const
Definition TriFace.h:86
std::size_t getIndex() const
Definition TriFace.h:57
void setShadingNormals(std::array< math::Vector3R, 3 > shadingNormals)
Definition TriFace.h:52
TriFace(std::size_t index, std::array< math::Vector3R, 3 > vertices)
Definition TriFace.h:40
const std::array< math::Vector3R, 3 > & getVertices() const
Definition TriFace.h:62
bool hasTexCoords() const
Definition TriFace.h:81
void setTexCoords(std::array< math::Vector3R, 3 > texCoords)
Definition TriFace.h:47
The root for all renderer implementations.
Definition EEngineProject.h:6