Added basis for point light
This commit is contained in:
parent
862ef6d34b
commit
b51c5a7557
6 changed files with 105 additions and 6 deletions
34
include/lighting/point.hpp
Normal file
34
include/lighting/point.hpp
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue