2014-10-20 17:08:51 +00:00
|
|
|
#ifndef LIGHT_HH_INCLUDED
|
|
|
|
#define LIGHT_HH_INCLUDED
|
|
|
|
|
|
|
|
#include "entity.hh"
|
2015-03-07 21:48:44 +00:00
|
|
|
#include "flame.hh"
|
2014-10-20 17:08:51 +00:00
|
|
|
#include <ACGL/Math/Math.hh>
|
|
|
|
|
2014-10-31 09:38:06 +00:00
|
|
|
class Light : public Entity {
|
2014-10-20 17:08:51 +00:00
|
|
|
public:
|
2015-03-04 14:22:07 +00:00
|
|
|
Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameYOffset = 0.0f, float flameHeight = 0.0f, float flameWidth = 0.0f);
|
2014-11-17 16:50:06 +00:00
|
|
|
Light();
|
2014-11-03 22:28:06 +00:00
|
|
|
glm::vec3 getColour();
|
|
|
|
float getIntensity();
|
2015-03-07 21:48:44 +00:00
|
|
|
Flame* getFlame();
|
2014-10-20 17:08:51 +00:00
|
|
|
~Light();
|
2015-03-07 21:48:44 +00:00
|
|
|
bool isFlame();
|
2014-10-20 17:08:51 +00:00
|
|
|
private:
|
2015-03-07 21:48:44 +00:00
|
|
|
bool withFlame;
|
|
|
|
Flame flame;
|
2014-10-20 17:08:51 +00:00
|
|
|
float intensity;
|
|
|
|
glm::vec3 colour;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|