From 1ad0a13ce0df676a9a765e007fe403e0d53281d0 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 20 Oct 2014 19:08:51 +0200 Subject: [PATCH] Added light.hh --- light.hh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 light.hh diff --git a/light.hh b/light.hh new file mode 100644 index 0000000..7efa758 --- /dev/null +++ b/light.hh @@ -0,0 +1,20 @@ +#ifndef LIGHT_HH_INCLUDED +#define LIGHT_HH_INCLUDED + +#include "entity.hh" +#include + +//To distinguish various light types +enum LightType {POINT, AMBIENT}; + +class Light : Entity { + public: + Light(glm::vec3 positon, glm::vec3 rotation, glm::vec3 colour, float intensity); + ~Light(); + private: + float intensity; + glm::vec3 colour; + Type type; +}; + +#endif