|
Toast Engine
|


Public Member Functions | |
| VoxelModel (const std::vector< uint8_t > &data) | |
| Throws on malformed or non canonical data. | |
| auto | instantiate (voxel::BrickPool &pool) const -> std::optional< voxel::Volume > |
| void | reload (const std::vector< uint8_t > &data) |
| auto | type () const -> std::string_view override |
| auto | serialize (SaveMode mode) const -> std::vector< uint8_t > override |
| auto | brickDims () const noexcept -> glm::uvec3 |
| auto | paletteUid () const noexcept -> uint64_t |
| auto | storedBrickCount () const noexcept -> uint32_t |
| auto | solidVoxelCount () const -> uint32_t |
| auto | materialAt (glm::uvec3 voxel) const noexcept -> uint8_t |
| Public Member Functions inherited from assets::Asset | |
| Asset (const Asset &)=delete | |
| auto | operator= (const Asset &) -> Asset &=delete |
| auto | refCount () const noexcept -> uint32_t |
Static Public Member Functions | |
| static auto | capture (const voxel::Volume &volume, uint64_t palette_uid) -> std::unique_ptr< VoxelModel > |
Additional Inherited Members | |
| Protected Member Functions inherited from assets::Asset | |
| void | addRef () noexcept |
| void | release () noexcept |
|
nodiscardoverridevirtual |
Implements assets::ISaveable.
|
inlinenodiscardoverridevirtual |
Implements assets::Asset.