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

#include <model_component.h>

Inheritance diagram for unravel::submesh_component:
unravel::component_crtp< submesh_component > unravel::basic_component

Public Member Functions

void migrate_legacy_indices (const std::vector< uint32_t > &legacy_indices)
 Migrates legacy serialized data that only stored bare submesh indices. Creates default-valued entries for legacy_indices when no entries were loaded.
 
- Public Member Functions inherited from unravel::basic_component
void touch ()
 Marks the component as 'touched'.
 

Public Attributes

std::vector< submesh_entryentries {}
 
- Public Attributes inherited from unravel::basic_component
bool eto {}
 Disable empty type optimizations.
 

Additional Inherited Members

- Public Types inherited from unravel::component_crtp< submesh_component >
using base
 
- Static Public Attributes inherited from unravel::component_crtp< submesh_component >
static constexpr bool in_place_delete
 Indicates if the component can be deleted in place.
 

Detailed Description

Definition at line 385 of file model_component.h.

Member Function Documentation

◆ migrate_legacy_indices()

void unravel::submesh_component::migrate_legacy_indices ( const std::vector< uint32_t > & legacy_indices)
inline

Migrates legacy serialized data that only stored bare submesh indices. Creates default-valued entries for legacy_indices when no entries were loaded.

Definition at line 396 of file model_component.h.

Member Data Documentation

◆ entries

std::vector<submesh_entry> unravel::submesh_component::entries {}

Per-submesh render settings for the submeshes affected by this node. Rebuilt from the mesh asset on armature init (see rebuild_submesh_entries), so the entry list itself is derived data - only the per-entry settings are authored.

Definition at line 390 of file model_component.h.


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