vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
ven::ModelFactory Class Reference

Class for Model factory. More...

#include <Model.hpp>

+ Collaboration diagram for ven::ModelFactory:

Public Member Functions

 ModelFactory ()=delete
 
 ~ModelFactory ()=default
 
 ModelFactory (const ModelFactory &)=delete
 
ModelFactoryoperator= (const ModelFactory &)=delete
 
 ModelFactory (ModelFactory &&)=delete
 
ModelFactoryoperator= (ModelFactory &&)=delete
 

Static Public Member Functions

static std::unique_ptr< Modelcreate (Device &device, const std::string &filepath)
 
static std::unordered_map< std::string, std::shared_ptr< Model > > loadAll (Device &device, const std::string &folderPath)
 

Detailed Description

Class for Model factory.

Definition at line 20 of file Model.hpp.

Constructor & Destructor Documentation

◆ ModelFactory() [1/3]

ven::ModelFactory::ModelFactory ( )
delete

◆ ~ModelFactory()

ven::ModelFactory::~ModelFactory ( )
default

◆ ModelFactory() [2/3]

ven::ModelFactory::ModelFactory ( const ModelFactory & )
delete

◆ ModelFactory() [3/3]

ven::ModelFactory::ModelFactory ( ModelFactory && )
delete

Member Function Documentation

◆ create()

std::unique_ptr< ven::Model > ven::ModelFactory::create ( Device & device,
const std::string & filepath )
static

Definition at line 20 of file Model.cpp.

References ven::Model::Builder::loadModel().

+ Here is the call graph for this function:

◆ loadAll()

std::unordered_map< std::string, std::shared_ptr< ven::Model > > ven::ModelFactory::loadAll ( Device & device,
const std::string & folderPath )
static

Definition at line 3 of file Model.cpp.

References ven::Logger::logExecutionTime(), and ven::Logger::logWarning().

Referenced by ven::Engine::loadObjects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

ModelFactory & ven::ModelFactory::operator= ( const ModelFactory & )
delete

◆ operator=() [2/2]

ModelFactory & ven::ModelFactory::operator= ( ModelFactory && )
delete

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