struct MeshCreateInformation

Information used for creation of a new Mesh object.

Public

Constructors

MeshCreateInformation

MeshCreateInformation()

Fields

VertexCount

u32 VertexCount

Number of vertices in the mesh.

IndexCount

u32 IndexCount

Number of indices in the mesh.

VertexDescription

Vertex description structure that describes how are vertices organized in the vertex buffer.

When binding a mesh to the pipeline you must ensure vertex description at least partially matches the input description of the currently bound vertex GPU program.

SubMeshes

Vector<SubMesh> SubMeshes

Defines how are indices separated into sub-meshes, and how are those sub-meshes rendered.

Sub-meshes may be rendered independently.

Flags

MeshFlags Flags

Optimizes performance depending on planned usage of the mesh.

IndexType

Size of indices, use smaller size for better performance, however be careful not to go over the number of vertices limited by the size.

Skeleton

Optional skeleton that can be used for skeletal animation of the mesh.

MorphShapes

Optional set of morph shapes that can be used for per-vertex animation of the mesh.