OSDN Git Service

c482cd188d7e3c825901252c8453dc75b8cc5c62
[moflib/moflib.git] / moflib-1.0 / moflib / moflib / mof / DirectionalLight.hpp
1 #pragma once
2 #include "mof/Light.hpp"
3 #include "mof/Color.hpp"
4 #include "mof/Vector3D.hpp"
5
6 namespace mof{
7
8         class DirectionalLight : public Light{
9                 mof::Color m_diffuse;
10                 mof::Color m_ambient;
11                 mof::Vector3D m_direction;
12         public:
13                 DirectionalLight(mof::Color diffuse , mof::Color ambient , mof::Vector3D& direction);
14                 void setDiffuseColor(mof::Color diffuse){m_diffuse = diffuse;}
15                 void setAmbientColor(mof::Color ambient){m_ambient = ambient;}
16                 void setDirection(mof::Vector3D& direction){m_direction = direction;}
17
18                 virtual void update();
19                 virtual void reflect();
20
21         };
22
23 };