UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
light.h
Go to the documentation of this file.
1 #ifndef HORUSEYE_FRAMEWORK_LIGHT_H_
2 #define HORUSEYE_FRAMEWORK_LIGHT_H_
3 
4 #include <ugdk/math/vector2D.h>
5 #include <ugdk/structure/color.h>
6 #include <ugdk/graphic.h>
8 
9 namespace ugdk {
10 namespace graphic {
11 
12 class Light {
13  public:
14  Light();
15  ~Light();
16 
17  const ugdk::math::Vector2D& dimension() const { return dimension_; }
19 
20  const structure::Color& color() const { return color_; }
21  void set_color(const structure::Color& color) { color_ = color; }
22 
23  void Draw(Canvas&);
24 
25  private:
26  ugdk::math::Vector2D dimension_;
27  structure::Color color_;
28  VertexData data_;
29 };
30 
31 } // namespace graphic
32 } // namespace ugdk
33 
34 #endif
Definition: canvas.h:28
void set_dimension(const ugdk::math::Vector2D &dimension)
Definition: vector2D.h:18
Definition: color.h:9
Definition: animation.h:11
Definition: vertexdata.h:20
const structure::Color & color() const
Definition: light.h:20
const ugdk::math::Vector2D & dimension() const
Definition: light.h:17
void Draw(Canvas &)
Definition: light.h:12
void set_color(const structure::Color &color)
Definition: light.h:21