Anvil Engine
Loading...
Searching...
No Matches
AModel Class Reference

#include <AModel.h>

Public Member Functions

 AModel ()=default
 ~AModel ()
void Draw ()
int LoadFromFile (const std::string &path)
void AddMesh (AMesh *mesh)
const std::vector< AMesh * > & GetMeshes () const
AMeshGetMesh (size_t index)

Constructor & Destructor Documentation

◆ AModel()

AModel::AModel ( )
default

◆ ~AModel()

AModel::~AModel ( )
inline

Member Function Documentation

◆ AddMesh()

void AModel::AddMesh ( AMesh * mesh)
inline

◆ Draw()

void AModel::Draw ( )
inline

◆ GetMesh()

AMesh * AModel::GetMesh ( size_t index)
inline

◆ GetMeshes()

const std::vector< AMesh * > & AModel::GetMeshes ( ) const
inline

◆ LoadFromFile()

int AModel::LoadFromFile ( const std::string & path)

Load a 3D model from a file and add it to the model's mesh collection

Parameters
pathThe file path of the model to be loaded
Returns
1 if loading was successful, 0 if loading failed

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