|
wavelength 1.0.0
|
A kind of chunk, a mesh and the animation it tumbles by, drawn as many instances. More...
#include <tnlfire.h>

Public Member Functions | |
| ChunkModel () | |
| Make a model with no mesh. | |
| ChunkModel (ChunkModel &&) noexcept=default | |
| Move a model. | |
| ~ChunkModel () | |
| Delete the instanced mesh. | |
| void | CreateMultiMesh () |
| Create the instanced mesh that draws the chunks of the model, named for the address of the model. | |
Public Attributes | |
| float | mWeight |
| std::unique_ptr< RndMultiMesh > | mMultiMesh |
| RndTransAnim * | mTransAnim |
| RndMesh * | mMesh |
A kind of chunk, a mesh and the animation it tumbles by, drawn as many instances.
The class is not polymorphic. RTTI identifies it. The object is 0x10 bytes. The entries of capture_chunks give the weight of the model and the names of its mesh and animation.
|
inline |
Make a model with no mesh.
The binary expands it inline.
|
defaultnoexcept |
Move a model.
The vector of models moves its entries as the vector grows.
| TnlFire::ChunkModel::~ChunkModel | ( | ) |
Delete the instanced mesh.
| void TnlFire::ChunkModel::CreateMultiMesh | ( | ) |
Create the instanced mesh that draws the chunks of the model, named for the address of the model.
| float TnlFire::ChunkModel::mWeight |
The chance of the model against the other models.
| std::unique_ptr<RndMultiMesh> TnlFire::ChunkModel::mMultiMesh |
The instances of the mesh.
| RndTransAnim* TnlFire::ChunkModel::mTransAnim |
The tumble of a chunk over its life. Borrowed.
| RndMesh* TnlFire::ChunkModel::mMesh |
The mesh. Borrowed.