All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::MeshCluster Struct Reference

Mesh cluster. More...

#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< kzU16indexData
 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...
 

Detailed Description

Mesh cluster.

Constructor & Destructor Documentation

kanzi::MeshCluster::MeshCluster ( GraphicsPrimitiveType  type,
unsigned int  indexCount,
MaterialSharedPtr  material,
kzString  materialURL 
)
explicit
kanzi::MeshCluster::MeshCluster ( KzcInputStream inputStream,
const KzuBinaryFileInfo file 
)
explicit

Member Function Documentation

void kanzi::MeshCluster::load ( KzcInputStream inputStream,
const KzuBinaryFileInfo file 
)

Member Data Documentation

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.


The documentation for this struct was generated from the following file: