NcEngine
|
Base class for mesh components. More...
#include <Mesh.h>
Public Member Functions | |
MeshBase (Entity self, const asset::MeshView &meshAsset, const MaterialDesc &materialDesc, MeshInstanceType type) | |
MeshBase (MeshBase &&other) noexcept | |
MeshBase & | operator= (MeshBase &&other) noexcept |
MeshBase (const MeshBase &)=delete | |
MeshBase & | operator= (const MeshBase &)=delete |
General Functions | |
auto | GetEntity () const -> Entity |
auto | GetContext () const -> const MeshInstanceContext & |
Mesh Functions | |
auto | GetMeshId () const -> uint64_t |
void | SetMesh (const asset::MeshView &meshAsset) |
Material Functions | |
auto | GetMaterial () const -> const MaterialInstance & |
auto | GetMaterial () -> MaterialInstance & |
void | SetMaterial (const MaterialDesc &materialDesc) |
~MeshBase () noexcept | |
Base class for mesh components.
|
inlineprotectednoexcept |
internal
|
inline |
internal
|
inline |
internal
void nc::MeshBase::SetMaterial | ( | const MaterialDesc & | materialDesc | ) |
internal