7#define GLM_ENABLE_EXPERIMENTAL
60 const std::string&
Name()
const;
65 const std::vector<glm::vec3>&
Vertices()
const;
70 const std::vector<glm::vec3>&
Normals()
const;
75 const std::vector<glm::vec3>&
Tangents()
const;
80 const std::vector<glm::vec3>&
BiNormals()
const;
97 const std::vector<std::vector<glm::vec4>>&
VertexColors()
const;
107 const std::vector<std::uint32_t>&
Indices()
const;
114 std::shared_ptr<ModelMaterial> mMaterial;
116 std::vector<glm::vec3> mVertices;
117 std::vector<glm::vec3> mNormals;
118 std::vector<glm::vec3> mTangents;
119 std::vector<glm::vec3> mBiNormals;
120 std::vector<std::vector<glm::vec3>> mTextureCoordinates;
121 std::vector<std::vector<glm::vec4>> mVertexColors;
122 std::uint32_t mFaceCount;
123 std::vector<std::uint32_t> mIndices;
const std::vector< std::vector< glm::vec3 > > & TextureCoordinates() const
Returns texture coordinate sets.
std::shared_ptr< ModelMaterial > GetMaterial() const
Returns the material associated with this mesh.
Mesh & operator=(const Mesh &)=default
const std::vector< std::uint32_t > & Indices() const
Returns the vertex index buffer.
const std::vector< glm::vec3 > & Vertices() const
Returns the vertex position array.
Mesh & operator=(Mesh &&)=default
const std::vector< glm::vec3 > & BiNormals() const
Returns the vertex binormal array.
Model & GetModel()
Returns the parent model that owns this mesh.
const std::vector< glm::vec3 > & Tangents() const
Returns the vertex tangent array.
const std::vector< std::vector< glm::vec4 > > & VertexColors() const
Returns per-vertex color sets.
Mesh(const Mesh &)=default
std::uint32_t FaceCount() const
Returns the number of faces in the mesh.
const std::vector< glm::vec3 > & Normals() const
Returns the vertex normal array.
const std::string & Name() const
Returns the mesh name as imported from the source file.