Interface representing a 3D mesh resource. More...
#include <Mesh.h>
Inherits Raven::RefCounted.
Inherited by Raven::VulkanMesh.
Public Member Functions | |
| virtual | ~Mesh ()=default |
| virtual std::string | GetPath () const =0 |
| Returns the file path from which the mesh was loaded. | |
| virtual void | Release ()=0 |
| virtual Ref< VertexBuffer > | GetVertexBuffer () const =0 |
| virtual Ref< IndexBuffer > | GetIndexBuffer () const =0 |
| virtual std::vector< SubMesh > | GetSubmeshes ()=0 |
| virtual std::vector< MaterialHandle > | GetMaterialHandles () const =0 |
| virtual void | SetMaterialHandle (usize slot, const MaterialHandle &handle)=0 |
| Public Member Functions inherited from Raven::RefCounted | |
| RefCounted () | |
| virtual | ~RefCounted () |
| void | IncRefCount () |
| void | DecRefCount () |
| u32 | GetRefCount () const |
Static Public Member Functions | |
| static Ref< Mesh > | Create (const std::string &path) |
| Factory method to create a Mesh from a given file path. | |
Static Public Attributes | |
| static constexpr AssetType | ASSET_TYPE = AssetType::Mesh |
Interface representing a 3D mesh resource.
Provides access to the mesh source path. Concrete implementations handle actual mesh loading and GPU resource management.
|
virtualdefault |
|
pure virtual |
Implemented in Raven::VulkanMesh.
|
pure virtual |
Implemented in Raven::VulkanMesh.
|
pure virtual |
Returns the file path from which the mesh was loaded.
Implemented in Raven::VulkanMesh.
|
pure virtual |
Implemented in Raven::VulkanMesh.
|
pure virtual |
Implemented in Raven::VulkanMesh.
|
pure virtual |
Implemented in Raven::VulkanMesh.
|
pure virtual |
Implemented in Raven::VulkanMesh.
|
inlinestaticconstexpr |