SparrowRenderer/lights.h
2015-07-02 13:08:05 +02:00

28 lines
489 B
C++

#ifndef LIGHT_H
#define LIGHT_H
#include <glm/vec3.hpp>
#include <glew/glew.h>
#include <vector>
#define MAX_LIGHTS 4
class Shader;
class Lights
{
private:
typedef struct
{
glm::vec3 position;
glm::vec3 color;
} Light;
std::vector<Light> lights;
public:
void addLight(const glm::vec3 &myPosition = glm::vec3(0), const glm::vec3 myColor = glm::vec3(1));
void bind(GLuint lightsLocation, GLuint nbLocation, Shader* shader);
};
#endif // LIGHT_H