[FEATURE] single light support

This commit is contained in:
Menno
2021-05-21 08:36:04 +02:00
parent 01571d191f
commit 9e9d50da9e
12 changed files with 132 additions and 13 deletions

View File

@@ -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
View 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; }
};
}