MeshRegistry Class
Stores mesh data records used by rendering systems. More...
Declaration
Public Constructors Index
| MeshRegistry () | |
|
Constructs the registry and reserves default mesh capacity. More... | |
Public Member Functions Index
template <typename... Args> | |
| MeshDataIndex | registerMeshData (Args &&... args) |
|
Registers mesh data and returns its stable index. More... | |
| const MeshData & | meshData (const MeshDataIndex meshIdx) const |
|
Returns mesh data by index. More... | |
Private Member Attributes Index
| std::vector< MeshData > | meshes_ |
Description
Stores mesh data records used by rendering systems.
Definition at line 23 of file MeshRegistry.ixx.
Public Constructors
MeshRegistry()
| inline |
Constructs the registry and reserves default mesh capacity.
Definition at line 33 of file MeshRegistry.ixx.
Reference DEFAULT_MESH_POOL_CAPACITY.
Public Member Functions
meshData()
| inline |
Returns mesh data by index.
- Parameters
-
meshIdx Index of the mesh data entry.
- Returns
Const reference to the stored mesh data.
Definition at line 56 of file MeshRegistry.ixx.
registerMeshData()
| inline |
Registers mesh data and returns its stable index.
- Template Parameters
-
Args Constructor argument types forwarded to MeshData.
- Parameters
-
args Constructor arguments forwarded into the stored mesh data.
- Returns
Index of the newly registered mesh data entry.
Definition at line 45 of file MeshRegistry.ixx.
Private Member Attributes
meshes_
|
Definition at line 25 of file MeshRegistry.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.