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

Class for light. More...

#include <Light.hpp>

+ Collaboration diagram for ven::Light:

Public Types

using Map = std::unordered_map<unsigned int, Light>
 

Public Member Functions

 Light (const unsigned int objId)
 
 ~Light ()=default
 
 Light (const Light &)=delete
 
Lightoperator= (const Light &)=delete
 
 Light (Light &&)=default
 
Lightoperator= (Light &&)=default
 
unsigned int getId () const
 
std::string getName () const
 
float getShininess () const
 
void setName (const std::string &name)
 
void setShininess (const float shininess)
 

Public Attributes

glm::vec4 color {DEFAULT_LIGHT_COLOR}
 
Transform3D transform {}
 

Private Attributes

unsigned int m_lightId
 
std::string m_name {"point light"}
 
float m_shininess {DEFAULT_SHININESS}
 

Detailed Description

Class for light.

Definition at line 28 of file Light.hpp.

Member Typedef Documentation

◆ Map

using ven::Light::Map = std::unordered_map<unsigned int, Light>

Definition at line 32 of file Light.hpp.

Constructor & Destructor Documentation

◆ Light() [1/3]

ven::Light::Light ( const unsigned int objId)
inlineexplicit

Definition at line 34 of file Light.hpp.

◆ ~Light()

ven::Light::~Light ( )
default

◆ Light() [2/3]

ven::Light::Light ( const Light & )
delete

◆ Light() [3/3]

ven::Light::Light ( Light && )
default

Member Function Documentation

◆ getId()

unsigned int ven::Light::getId ( ) const
inlinenodiscard

Definition at line 43 of file Light.hpp.

References m_lightId.

◆ getName()

std::string ven::Light::getName ( ) const
inlinenodiscard

Definition at line 44 of file Light.hpp.

References m_name.

◆ getShininess()

float ven::Light::getShininess ( ) const
inlinenodiscard

Definition at line 45 of file Light.hpp.

References m_shininess.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Light & ven::Light::operator= ( Light && )
default

◆ setName()

void ven::Light::setName ( const std::string & name)
inline

Definition at line 47 of file Light.hpp.

References m_name.

◆ setShininess()

void ven::Light::setShininess ( const float shininess)
inline

Definition at line 48 of file Light.hpp.

References m_shininess.

Member Data Documentation

◆ color

glm::vec4 ven::Light::color {DEFAULT_LIGHT_COLOR}

Definition at line 50 of file Light.hpp.

Referenced by ven::LightFactory::duplicate().

◆ m_lightId

unsigned int ven::Light::m_lightId
private

Definition at line 55 of file Light.hpp.

Referenced by getId().

◆ m_name

std::string ven::Light::m_name {"point light"}
private

Definition at line 56 of file Light.hpp.

Referenced by getName(), and setName().

◆ m_shininess

float ven::Light::m_shininess {DEFAULT_SHININESS}
private

Definition at line 57 of file Light.hpp.

Referenced by getShininess(), and setShininess().

◆ transform

Transform3D ven::Light::transform {}

Definition at line 51 of file Light.hpp.

Referenced by ven::LightFactory::duplicate().


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