Added basis for point light

This commit is contained in:
Robert 2021-01-26 16:03:41 +01:00
parent 862ef6d34b
commit b51c5a7557
6 changed files with 105 additions and 6 deletions

View file

@ -0,0 +1,34 @@
#ifndef POINT_HPP
#define POINT_HPP
#include <core.hpp>
#include <color.hpp>
#include <glm/glm.hpp>
namespace oglu
{
class Transformable;
class OGLU_API PointLight
{
public:
PointLight();
PointLight(const glm::vec3& position, const Color& color);
PointLight(const PointLight& other);
~PointLight();
void LinkPositionToTransformable(Transformable& link);
void UnlinkPositionFromTransformable();
float* GetPositionPointer();
public:
Color color;
private:
glm::vec3* position;
bool isLinked;
};
}
#endif