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

Class for object factory. More...

#include <Object.hpp>

+ Collaboration diagram for ven::ObjectFactory:

Public Member Functions

 ObjectFactory ()=delete
 
 ~ObjectFactory ()=default
 
 ObjectFactory (const ObjectFactory &)=delete
 
ObjectFactoryoperator= (const ObjectFactory &)=delete
 
 ObjectFactory (ObjectFactory &&)=delete
 
ObjectFactoryoperator= (ObjectFactory &&)=delete
 

Static Public Member Functions

static std::unique_ptr< Objectcreate (const std::shared_ptr< Texture > &texture, const std::shared_ptr< Model > &model, const std::string &name, const Transform3D &transform)
 
static std::unique_ptr< Objectduplicate (const Object &objSrc)
 

Static Private Attributes

static unsigned int m_currentObjId = 0
 

Detailed Description

Class for object factory.

Definition at line 18 of file Object.hpp.

Constructor & Destructor Documentation

◆ ObjectFactory() [1/3]

ven::ObjectFactory::ObjectFactory ( )
delete

◆ ~ObjectFactory()

ven::ObjectFactory::~ObjectFactory ( )
default

◆ ObjectFactory() [2/3]

ven::ObjectFactory::ObjectFactory ( const ObjectFactory & )
delete

◆ ObjectFactory() [3/3]

ven::ObjectFactory::ObjectFactory ( ObjectFactory && )
delete

Member Function Documentation

◆ create()

std::unique_ptr< ven::Object > ven::ObjectFactory::create ( const std::shared_ptr< Texture > & texture,
const std::shared_ptr< Model > & model,
const std::string & name,
const Transform3D & transform )
static

Definition at line 5 of file Object.cpp.

References m_currentObjId, and ven::MAX_OBJECTS.

Referenced by duplicate(), and ven::Engine::loadObjects().

+ Here is the caller graph for this function:

◆ duplicate()

static std::unique_ptr< Object > ven::ObjectFactory::duplicate ( const Object & objSrc)
inlinestatic

Definition at line 31 of file Object.hpp.

References create(), ven::Object::getDiffuseMap(), ven::Object::getModel(), ven::Object::getName(), and ven::Object::transform.

Referenced by ven::Gui::objectsSection().

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ m_currentObjId

unsigned int ven::ObjectFactory::m_currentObjId = 0
staticprivate

Definition at line 35 of file Object.hpp.

Referenced by create().


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