Cogs.Core
Public Attributes | List of all members
Cogs::Core::SubMesh Struct Reference

Defines a sub-mesh of a Mesh resource. More...

#include <Mesh.h>

Public Attributes

uint32_t startIndex
 Start index of the sub-mesh in the index array of the Mesh.
 
uint32_t numIndexes
 Number of indexes to draw for the sub-mesh.
 
PrimitiveType::EPrimitiveType primitiveType
 Primitive type to use when drawing the sub-mesh.
 

Detailed Description

Defines a sub-mesh of a Mesh resource.

Mesh resources can have several sub-meshes representing parts of the vertex data that should be rendered a specific way. Using the materialHandles[] field in MeshRenderComponent one can individually control the material instances used to render each sub-mesh.

Definition at line 248 of file Mesh.h.

Member Data Documentation

◆ numIndexes

uint32_t Cogs::Core::SubMesh::numIndexes

Number of indexes to draw for the sub-mesh.

Definition at line 254 of file Mesh.h.

◆ primitiveType

PrimitiveType::EPrimitiveType Cogs::Core::SubMesh::primitiveType

Primitive type to use when drawing the sub-mesh.

Definition at line 257 of file Mesh.h.

◆ startIndex

uint32_t Cogs::Core::SubMesh::startIndex

Start index of the sub-mesh in the index array of the Mesh.

Definition at line 251 of file Mesh.h.


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