#include <kanzi/graphics_3d/mesh.hpp>
Public Member Functions | |
| MeshCluster (GraphicsPrimitiveType type, unsigned int indexCount, MaterialSharedPtr material, kzString materialURL) | |
| MeshCluster (KzcInputStream *inputStream, const KzuBinaryFileInfo *file) | |
| void | load (KzcInputStream *inputStream, const KzuBinaryFileInfo *file) |
Public Attributes | |
| GraphicsPrimitiveType | type |
| Type of the buffer data. More... | |
| unsigned int | indexCount |
| Number of indices. More... | |
| vector< kzU16 > | indexData |
| Index data. More... | |
| MaterialSharedPtr | material |
| Material for this cluster. More... | |
| string | materialURL |
| Temporary resource URL during loading, from which the material resource is acquired during finishing of loading. More... | |
| unsigned int | indexBufferHandle |
| Index buffer handle. More... | |
Mesh cluster.
|
explicit |
|
explicit |
| void kanzi::MeshCluster::load | ( | KzcInputStream * | inputStream, |
| const KzuBinaryFileInfo * | file | ||
| ) |
| GraphicsPrimitiveType kanzi::MeshCluster::type |
Type of the buffer data.
| unsigned int kanzi::MeshCluster::indexCount |
Number of indices.
Stored in a separate variable since indexData array can be freed to save memory.
| vector<kzU16> kanzi::MeshCluster::indexData |
Index data.
| MaterialSharedPtr kanzi::MeshCluster::material |
Material for this cluster.
| string kanzi::MeshCluster::materialURL |
Temporary resource URL during loading, from which the material resource is acquired during finishing of loading.
| unsigned int kanzi::MeshCluster::indexBufferHandle |
Index buffer handle.