Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::MaterialMeshGroup Class Reference

#include <StkMaterialMeshGroup.h>

Public Member Functions

 MaterialMeshGroup (std::shared_ptr< Material > mat=nullptr, std::shared_ptr< VertexBuffer > vertex_buffer=nullptr)
 
void setMaterial (std::shared_ptr< Material > mat)
 
std::shared_ptr< Materialmaterial ()
 
const std::shared_ptr< Material > & getMaterial () const
 
void setVertexBuffer (std::shared_ptr< VertexBuffer > vertex_buffer)
 
std::shared_ptr< VertexBuffervertexBuffer ()
 
const std::shared_ptr< VertexBuffer > & getVertexBuffer () const
 
void addMeshRender (std::shared_ptr< MeshRender > mesh)
 
std::vector< std::shared_ptr< MeshRender > > & getMeshRenders ()
 
std::shared_ptr< MaterialMeshGrouprefCopy ()
 

Protected Attributes

std::shared_ptr< Materialmaterial_
 
std::shared_ptr< VertexBuffervertex_buffer_
 
std::vector< std::shared_ptr< MeshRender > > meshes_
 

Detailed Description

MaterialMeshGroup - Material and vertex buffer setup for a collection of meshes. All meshes within a MaterialMeshGroup will use the same material and vertex buffer.

The vertex buffer and material must be compatible i.e the material shaders must have attributes corresponding to the vertex attribute names in the VertexBuffer.


The documentation for this class was generated from the following files: