diff --git a/main/Light.cc b/main/Light.cc new file mode 100644 index 0000000..a151e30 --- /dev/null +++ b/main/Light.cc @@ -0,0 +1,9 @@ + +#include "Light.h" +#include "util/Vector.h" + +Light::Light(const Vector & position) +{ + m_position = position; +} + diff --git a/main/Light.h b/main/Light.h new file mode 100644 index 0000000..b826db7 --- /dev/null +++ b/main/Light.h @@ -0,0 +1,18 @@ + +#ifndef LIGHT_H +#define LIGHT_H LIGHT_H + +#include "util/Vector.h" + +class Light +{ + public: + Light(const Vector & position); + const Vector & getPosition() const { return m_position; } + + private: + Vector m_position; +}; + +#endif + diff --git a/main/PointLight.cc b/main/PointLight.cc new file mode 100755 index 0000000..448b277 --- /dev/null +++ b/main/PointLight.cc @@ -0,0 +1,7 @@ + +#include "PointLight.h" + +PointLight::PointLight(const Vector & position) + : Light(position) +{ +} diff --git a/main/PointLight.h b/main/PointLight.h new file mode 100755 index 0000000..f5a2e56 --- /dev/null +++ b/main/PointLight.h @@ -0,0 +1,16 @@ + +#ifndef POINTLIGHT_H +#define POINTLIGHT_H POINTLIGHT_H + +#include "Light.h" + +class PointLight : public Light +{ + public: + PointLight(const Vector & position); + + private: +}; + +#endif +