OpenGL-utility/include/lighting/point.hpp

36 lines
635 B
C++
Raw Normal View History

2021-01-26 15:03:41 +00:00
#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();
2021-01-28 00:07:19 +00:00
PointLight(const glm::vec3& position, const Color& diffusionColor = Color::White, const Color& specularColor = Color::White);
2021-01-26 15:03:41 +00:00
PointLight(const PointLight& other);
~PointLight();
void LinkPositionToTransformable(Transformable& link);
void UnlinkPositionFromTransformable();
float* GetPositionPointer();
public:
2021-01-28 00:07:19 +00:00
Color diffusionColor;
Color specularColor;
2021-01-26 15:03:41 +00:00
2021-01-27 21:42:47 +00:00
2021-01-26 15:03:41 +00:00
private:
glm::vec3* position;
bool isLinked;
};
}
#endif