Use Mesh::CreateInfo to describe and create meshes. More...
#include <kanzi/core.ui/graphics3d/mesh_create_info.hpp>
Classes | |
struct | Cluster |
Parameters for Mesh::Cluster creation. More... | |
Public Types | |
typedef vector< PropertyEntry > | PropertyContainer |
typedef pair< AbstractPropertyType, Variant > | PropertyEntry |
Public Member Functions | |
CreateInfo () | |
Default constructor for mesh create info. More... | |
Public Attributes | |
Box | boundingBox |
Bounding box for mesh. More... | |
vector< Mesh::CreateInfo::Cluster > | clusters |
Clusters. More... | |
MemoryType | memoryType |
Memory type for the texture. More... | |
PropertyContainer | properties |
Properties to copy to the mesh. More... | |
Skeleton | skeleton |
Mesh skeleton for bone animations. More... | |
bool | uploadDataAtCreation |
Indicates whether vertex and index data should be upload at buffer creation. More... | |
size_t | vertexCount |
Number of vertices in the mesh. More... | |
vector< byte > | vertexData |
Vertex buffer data. More... | |
MeshAttributeCollection | vertexFormat |
Mesh vertex attributes. More... | |
size_t | vertexSize |
Size of one vertex in bytes. This is sum of all mesh vertex attributes sizes. More... | |
Use Mesh::CreateInfo to describe and create meshes.
Vertex and index listings define meshes. Indices refer to vertices which define the faces of a mesh.
To define a mesh, you need:
In Kanzi a mesh can have at most 65536 vertices, a limit set by GLES2. If you need more vertices, create additional meshes.
To create a cube mesh:
typedef pair<AbstractPropertyType, Variant> kanzi::Mesh::CreateInfo::PropertyEntry |
typedef vector<PropertyEntry> kanzi::Mesh::CreateInfo::PropertyContainer |
|
explicit |
Default constructor for mesh create info.
MemoryType kanzi::Mesh::CreateInfo::memoryType |
Memory type for the texture.
If Gpu is not included, texture will not be deployed when created. If Ram is not included, texture will not contain images after it has been deployed. Default value is GpuOnly.
vector<Mesh::CreateInfo::Cluster> kanzi::Mesh::CreateInfo::clusters |
Clusters.
Box kanzi::Mesh::CreateInfo::boundingBox |
Bounding box for mesh.
MeshAttributeCollection kanzi::Mesh::CreateInfo::vertexFormat |
Mesh vertex attributes.
size_t kanzi::Mesh::CreateInfo::vertexSize |
Size of one vertex in bytes. This is sum of all mesh vertex attributes sizes.
size_t kanzi::Mesh::CreateInfo::vertexCount |
Number of vertices in the mesh.
vector<byte> kanzi::Mesh::CreateInfo::vertexData |
Vertex buffer data.
bool kanzi::Mesh::CreateInfo::uploadDataAtCreation |
Indicates whether vertex and index data should be upload at buffer creation.
PropertyContainer kanzi::Mesh::CreateInfo::properties |
Properties to copy to the mesh.
Currently they are not used.