[FEATURE] single light support
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
|
||||
namespace entities
|
||||
{
|
||||
/*
|
||||
* This class represents a movable model in the game
|
||||
*/
|
||||
|
||||
class Entity
|
||||
{
|
||||
private:
|
||||
|
||||
25
src/entities/light.h
Normal file
25
src/entities/light.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/vec3.hpp>
|
||||
|
||||
namespace entities
|
||||
{
|
||||
/*
|
||||
* This class represents a light in the game
|
||||
*/
|
||||
|
||||
class Light
|
||||
{
|
||||
private:
|
||||
glm::vec3 position;
|
||||
glm::vec3 color;
|
||||
|
||||
public:
|
||||
Light(const glm::vec3& position, const glm::vec3& color) : position(position), color(color) { }
|
||||
|
||||
glm::vec3 GetPosition() const { return position; }
|
||||
void setPosition(const glm::vec3& position) { this->position = position; }
|
||||
glm::vec3 GetColor() const { return color; }
|
||||
void setColor(const glm::vec3& color) { this->color = color; }
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user