Saxum/game/light.hh

25 lines
581 B
C++

#ifndef LIGHT_HH_INCLUDED
#define LIGHT_HH_INCLUDED
#include "entity.hh"
#include "flame.hh"
#include <ACGL/Math/Math.hh>
class Light : public Entity {
public:
Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameYOffset = 0.0f, float flameHeight = 0.0f, float flameWidth = 0.0f);
Light();
glm::vec3 getColour();
float getIntensity();
Flame* getFlame();
~Light();
bool isFlame();
private:
bool withFlame;
Flame flame;
float intensity;
glm::vec3 colour;
};
#endif