CPointLight.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "ILight.h"
5 
6 
7 namespace ion
8 {
9  namespace Scene
10  {
11 
12  class CPointLight : public ILight
13  {
14 
15  public:
16 
17  CPointLight();
18 
19  color3f GetColor() const;
20  float GetRadius() const;
21 
22  void SetColor(color3f const & Color);
23  void SetRadius(float const Radius);
24 
25  string GetLightType() const;
26 
27  protected:
28 
29  Graphics::CUniform<color3f> Color = Colors::White;
31 
32  };
33 
34  }
35 }
Definition: SColor.h:8
CPointLight()
Definition: CPointLight.cpp:10
Graphics::CUniform< float > Radius
Definition: CPointLight.h:30
Customized variant of vec3 that intelligently handles conversion between floating point and integer c...
Definition: SColor.h:67
void SetColor(color3f const &Color)
Definition: CPointLight.cpp:26
string GetLightType() const
Definition: CPointLight.cpp:36
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
Helper class to easily add a uniform as a member or local variable.
Definition: IUniform.h:158
float GetRadius() const
Definition: CPointLight.cpp:21
color3f GetColor() const
Definition: CPointLight.cpp:16
Definition: CPointLight.h:12
void SetRadius(float const Radius)
Definition: CPointLight.cpp:31
Definition: ILight.h:13