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

Class for light factory. More...

#include <Light.hpp>

+ Collaboration diagram for ven::LightFactory:

Public Member Functions

 LightFactory ()=delete
 
 ~LightFactory ()=default
 
 LightFactory (const LightFactory &)=delete
 
LightFactoryoperator= (const LightFactory &)=delete
 
 LightFactory (LightFactory &&)=delete
 
LightFactoryoperator= (LightFactory &&)=delete
 

Static Public Member Functions

static std::unique_ptr< Lightcreate (const Transform3D &transform=DEFAULT_TRANSFORM, glm::vec4 color=DEFAULT_LIGHT_COLOR)
 
static std::unique_ptr< Lightduplicate (const Light &cpyLight)
 

Static Private Attributes

static unsigned int m_currentLightId = 0
 

Detailed Description

Class for light factory.

Definition at line 22 of file Light.hpp.

Constructor & Destructor Documentation

◆ LightFactory() [1/3]

ven::LightFactory::LightFactory ( )
delete

◆ ~LightFactory()

ven::LightFactory::~LightFactory ( )
default

◆ LightFactory() [2/3]

ven::LightFactory::LightFactory ( const LightFactory & )
delete

◆ LightFactory() [3/3]

ven::LightFactory::LightFactory ( LightFactory && )
delete

Member Function Documentation

◆ create()

std::unique_ptr< ven::Light > ven::LightFactory::create ( const Transform3D & transform = DEFAULT_TRANSFORM,
glm::vec4 color = DEFAULT_LIGHT_COLOR )
static

Definition at line 5 of file Light.cpp.

References m_currentLightId, and ven::MAX_LIGHTS.

Referenced by duplicate().

+ Here is the caller graph for this function:

◆ duplicate()

static std::unique_ptr< Light > ven::LightFactory::duplicate ( const Light & cpyLight)
inlinestatic

Definition at line 35 of file Light.hpp.

References ven::Light::color, create(), and ven::Light::transform.

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

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ m_currentLightId

unsigned int ven::LightFactory::m_currentLightId = 0
staticprivate

Definition at line 39 of file Light.hpp.

Referenced by create().


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