NcEngine
nc::MeshBase Class Reference

Base class for mesh components. More...

#include <Mesh.h>

Inheritance diagram for nc::MeshBase:
nc::SkinnedMesh nc::StaticMesh

Public Member Functions

 MeshBase (Entity self, const asset::MeshView &meshAsset, const MaterialDesc &materialDesc, MeshInstanceType type)
 
 MeshBase (MeshBase &&other) noexcept
 
MeshBaseoperator= (MeshBase &&other) noexcept
 
 MeshBase (const MeshBase &)=delete
 
MeshBaseoperator= (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
 

Detailed Description

Base class for mesh components.

Constructor & Destructor Documentation

◆ ~MeshBase()

nc::MeshBase::~MeshBase ( )
inlineprotectednoexcept

internal

Member Function Documentation

◆ GetMaterial() [1/2]

auto nc::MeshBase::GetMaterial ( ) -> MaterialInstance&
inline

internal

◆ GetMaterial() [2/2]

auto nc::MeshBase::GetMaterial ( ) const -> const MaterialInstance&
inline

internal

◆ SetMaterial()

void nc::MeshBase::SetMaterial ( const MaterialDesc materialDesc)

internal


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