![]() |
Rendering Engine 0.2.9
Modular Graphics Rendering Engine | v0.2.9
|
Represents a single geometric mesh imported from a model file. More...
#include <mesh.hpp>
Public Member Functions | |
| Mesh (const Mesh &)=default | |
| Mesh & | operator= (const Mesh &)=default |
| Mesh (Mesh &&)=default | |
| Mesh & | operator= (Mesh &&)=default |
| ~Mesh ()=default | |
| Model & | GetModel () |
| Returns the parent model that owns this mesh. More... | |
| std::shared_ptr< ModelMaterial > | GetMaterial () const |
| Returns the material associated with this mesh. More... | |
| const std::string & | Name () const |
| Returns the mesh name as imported from the source file. More... | |
| const std::vector< glm::vec3 > & | Vertices () const |
| Returns the vertex position array. More... | |
| const std::vector< glm::vec3 > & | Normals () const |
| Returns the vertex normal array. More... | |
| const std::vector< glm::vec3 > & | Tangents () const |
| Returns the vertex tangent array. More... | |
| const std::vector< glm::vec3 > & | BiNormals () const |
| Returns the vertex binormal array. More... | |
| const std::vector< std::vector< glm::vec3 > > & | TextureCoordinates () const |
| Returns texture coordinate sets. More... | |
| const std::vector< std::vector< glm::vec4 > > & | VertexColors () const |
| Returns per-vertex color sets. More... | |
| std::uint32_t | FaceCount () const |
| Returns the number of faces in the mesh. More... | |
| const std::vector< std::uint32_t > & | Indices () const |
| Returns the vertex index buffer. More... | |
Friends | |
| class | Model |
Represents a single geometric mesh imported from a model file.
The Mesh class stores all CPU-side vertex attributes and index data for one mesh, as imported from an Assimp aiMesh. It acts as an intermediate container before the data is transferred to GPU buffers (via MeshDataGpu).
Each Mesh instance is associated with:
ModelModelMaterial describing surface properties
|
default |
|
default |
|
default |
| const std::vector< glm::vec3 > & rendering_engine::Mesh::BiNormals | ( | ) | const |
| std::uint32_t rendering_engine::Mesh::FaceCount | ( | ) | const |
| std::shared_ptr< ModelMaterial > rendering_engine::Mesh::GetMaterial | ( | ) | const |
Returns the material associated with this mesh.
Definition at line 108 of file mesh.cpp.
| Model & rendering_engine::Mesh::GetModel | ( | ) |
| const std::vector< std::uint32_t > & rendering_engine::Mesh::Indices | ( | ) | const |
| const std::string & rendering_engine::Mesh::Name | ( | ) | const |
| const std::vector< glm::vec3 > & rendering_engine::Mesh::Normals | ( | ) | const |
| const std::vector< glm::vec3 > & rendering_engine::Mesh::Tangents | ( | ) | const |
| const std::vector< std::vector< glm::vec3 > > & rendering_engine::Mesh::TextureCoordinates | ( | ) | const |
| const std::vector< std::vector< glm::vec4 > > & rendering_engine::Mesh::VertexColors | ( | ) | const |
| const std::vector< glm::vec3 > & rendering_engine::Mesh::Vertices | ( | ) | const |