|
Falcon
|
#include <Mesh.h>
Public Member Functions | |
| Mesh () | |
| virtual | ~Mesh () |
| void | Setup () override |
| void | PreallocMatrixAmount (u32 maxMatrices) |
| void | AddWorldMatrix (const glm::mat4 &mat) |
| void | ClearWorldMatrices () |
| u32 | GetWorldMatrixAmount () |
| void | Bind () override |
| void | GetVertexPositionsArray (std::vector< glm::vec3, fmemory::STLAllocator< glm::vec3 >> &) const |
| VertexBuffer * | GetVB () |
| VertexBuffer * | GetVertexBuffer () |
| void | SetTransparent (bool transparent) |
| bool | GetTransparent () const |
Public Member Functions inherited from Renderable | |
| Renderable () | |
| virtual | ~Renderable () |
| void | SetMaterial (Material *mat) |
| Material * | GetMaterial () const |
Public Attributes | |
| boost::container::vector< u32, fmemory::STLAllocator< u32 > > | m_indexArray |
| boost::container::vector< u32, fmemory::STLAllocator< u32 > > | m_indexOffsets |
Public Attributes inherited from Renderable | |
| boost::container::vector< Vertex, fmemory::STLAllocator< Vertex > > | m_vertexArray |
Additional Inherited Members | |
Protected Attributes inherited from Renderable | |
| Material * | m_material = nullptr |
| VertexArray * | m_VAO = nullptr |
| Mesh::Mesh | ( | ) |
Basic Mesh Constructor
|
virtual |
Mesh class Destructor.
| void Mesh::AddWorldMatrix | ( | const glm::mat4 & | mat | ) |
Adds a world matrix to the list of matrices for instanced rendering
| mat | - The world matrix to add |
|
overridevirtual |
Binds the VertexArray object held by the mesh along with the relevant vertex and index buffer.
Reimplemented from Renderable.
| void Mesh::ClearWorldMatrices | ( | ) |
Clears the meshes world matrices
|
inline |
|
inline |
|
inline |
| void Mesh::GetVertexPositionsArray | ( | std::vector< glm::vec3, fmemory::STLAllocator< glm::vec3 >> & | vertPosArray | ) | const |
Returns the vertexArray into the vector passed.
| glm::vec3 | vector bufffer to copy data into. |
| u32 Mesh::GetWorldMatrixAmount | ( | ) |
Gets the size of the world matrices array
| void Mesh::PreallocMatrixAmount | ( | u32 | maxMatrices | ) |
Preallocates the world matrix vector with a specified size
| maxMatrices | - The maximum number of items in the world |
|
inline |
|
overridevirtual |
Sets a vertex Array Object with the vertex and indexbuffer values in this mesh class.
Reimplemented from Renderable.
| boost::container::vector<u32, fmemory::STLAllocator<u32> > Mesh::m_indexArray |
| boost::container::vector<u32, fmemory::STLAllocator<u32> > Mesh::m_indexOffsets |
1.8.17