![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#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< Material > | material () |
const std::shared_ptr< Material > & | getMaterial () const |
void | setVertexBuffer (std::shared_ptr< VertexBuffer > vertex_buffer) |
std::shared_ptr< VertexBuffer > | vertexBuffer () |
const std::shared_ptr< VertexBuffer > & | getVertexBuffer () const |
void | addMeshRender (std::shared_ptr< MeshRender > mesh) |
std::vector< std::shared_ptr< MeshRender > > & | getMeshRenders () |
std::shared_ptr< MaterialMeshGroup > | refCopy () |
Protected Attributes | |
std::shared_ptr< Material > | material_ |
std::shared_ptr< VertexBuffer > | vertex_buffer_ |
std::vector< std::shared_ptr< MeshRender > > | meshes_ |
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.