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

Structure describing a LOD level in load_data (for serialization). More...

#include <mesh.h>

Public Attributes

std::vector< uint32_t > index_data
 < Index buffer data for this LOD (as uint32_t array)
 
uint32_t face_count = 0
 Submeshes for this LOD (face ranges may differ from base LOD)
 
std::vector< mesh::submeshsubmeshes
 Error metric for this LOD (from meshoptimizer)
 
float simplification_error = 0.0f
 

Detailed Description

Structure describing a LOD level in load_data (for serialization).

Definition at line 435 of file mesh.h.

Member Data Documentation

◆ face_count

uint32_t unravel::mesh::lod_load_data::face_count = 0

Submeshes for this LOD (face ranges may differ from base LOD)

Definition at line 440 of file mesh.h.

◆ index_data

std::vector<uint32_t> unravel::mesh::lod_load_data::index_data

< Index buffer data for this LOD (as uint32_t array)

Number of faces in this LOD

Definition at line 438 of file mesh.h.

◆ simplification_error

float unravel::mesh::lod_load_data::simplification_error = 0.0f

Definition at line 444 of file mesh.h.

◆ submeshes

std::vector<mesh::submesh> unravel::mesh::lod_load_data::submeshes

Error metric for this LOD (from meshoptimizer)

Definition at line 442 of file mesh.h.


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