Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::mesh::submesh Struct Reference

Structure describing an individual "piece" of the mesh, often grouped by material, but can be any arbitrary collection of triangles. More...

#include <mesh.h>

Public Attributes

uint32_t data_group_id {0}
 < The unique user assigned "data group" that can be used to separate submeshes.
 
int32_t vertex_start {-1}
 Number of vertices included in this batch.
 
uint32_t vertex_count {0}
 The initial face, from the index buffer, to render in this batch.
 
int32_t face_start {-1}
 Number of faces to render in this batch.
 
uint32_t face_count {0}
 
math::bbox bbox {}
 
bool skinned {}
 
uint32_t stable_id {0}
 

Detailed Description

Structure describing an individual "piece" of the mesh, often grouped by material, but can be any arbitrary collection of triangles.

Definition at line 329 of file mesh.h.

Member Data Documentation

◆ bbox

math::bbox unravel::mesh::submesh::bbox {}

Definition at line 342 of file mesh.h.

◆ data_group_id

uint32_t unravel::mesh::submesh::data_group_id {0}

< The unique user assigned "data group" that can be used to separate submeshes.

The beginning vertex for this batch.

Definition at line 332 of file mesh.h.

◆ face_count

uint32_t unravel::mesh::submesh::face_count {0}

Definition at line 340 of file mesh.h.

◆ face_start

int32_t unravel::mesh::submesh::face_start {-1}

Number of faces to render in this batch.

Definition at line 338 of file mesh.h.

◆ skinned

bool unravel::mesh::submesh::skinned {}

Import-stable identifier (hash of the source mesh name + disambiguation). Survives reimports that reorder submeshes; 0 means "not assigned" and callers should fall back to the submesh array index.

Definition at line 344 of file mesh.h.

◆ stable_id

uint32_t unravel::mesh::submesh::stable_id {0}

Definition at line 349 of file mesh.h.

◆ vertex_count

uint32_t unravel::mesh::submesh::vertex_count {0}

The initial face, from the index buffer, to render in this batch.

Definition at line 336 of file mesh.h.

◆ vertex_start

int32_t unravel::mesh::submesh::vertex_start {-1}

Number of vertices included in this batch.

Definition at line 334 of file mesh.h.


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