Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::VulkanMesh Class Reference

Vulkan-specific implementation of a Mesh. More...

#include <VulkanMesh.h>

Inheritance diagram for Raven::VulkanMesh:
Raven::Mesh

Public Member Functions

 VulkanMesh (const std::string &path)
 Constructs a VulkanMesh by loading a model from the given file path.
 ~VulkanMesh ()
 Destructor that cleans up submesh resources.
Ref< VertexBufferGetVertexBuffer () const override
Ref< IndexBufferGetIndexBuffer () const override
std::vector< SubMeshGetSubmeshes () override
std::string GetPath () const override
 Gets the original file path of the loaded model.
Public Member Functions inherited from Raven::Mesh
virtual ~Mesh ()=default

Additional Inherited Members

Static Public Member Functions inherited from Raven::Mesh
static Ref< MeshCreate (const std::string &path)
 Factory method to create a Mesh from a given file path.

Detailed Description

Vulkan-specific implementation of a Mesh.

Loads a mesh from a file using Assimp, processes the scene graph, and manages submeshes with their associated vertex/index buffers and textures.

Constructor & Destructor Documentation

◆ VulkanMesh()

Raven::VulkanMesh::VulkanMesh ( const std::string & path)

Constructs a VulkanMesh by loading a model from the given file path.

Parameters
pathFilesystem path to the model to load.

◆ ~VulkanMesh()

Raven::VulkanMesh::~VulkanMesh ( )

Destructor that cleans up submesh resources.

Member Function Documentation

◆ GetIndexBuffer()

Ref< IndexBuffer > Raven::VulkanMesh::GetIndexBuffer ( ) const
inlineoverridevirtual

Implements Raven::Mesh.

◆ GetPath()

std::string Raven::VulkanMesh::GetPath ( ) const
inlineoverridevirtual

Gets the original file path of the loaded model.

Returns
The model file path as a string.

Implements Raven::Mesh.

◆ GetSubmeshes()

std::vector< SubMesh > Raven::VulkanMesh::GetSubmeshes ( )
inlineoverridevirtual

Implements Raven::Mesh.

◆ GetVertexBuffer()

Ref< VertexBuffer > Raven::VulkanMesh::GetVertexBuffer ( ) const
inlineoverridevirtual

Implements Raven::Mesh.


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