35 lines
644 B
C++
35 lines
644 B
C++
#ifndef PHONGMODULE_H
|
|
#define PHONGMODULE_H
|
|
|
|
#include "module.h"
|
|
#include <vector>
|
|
#include <cstddef>
|
|
#include <glew/glew.h>
|
|
|
|
class Shader;
|
|
class PhongEntity;
|
|
class Lights;
|
|
|
|
class PhongModule : public Module
|
|
{
|
|
private:
|
|
Lights* dirLights;
|
|
Lights* pointLights;
|
|
GLuint nbDirLightsLocation;
|
|
GLuint dirLightsLocation;
|
|
GLuint nbPointLightsLocation;
|
|
GLuint pointLightsLocation;
|
|
|
|
Shader* shader;
|
|
std::vector<PhongEntity*> entities;
|
|
|
|
public:
|
|
PhongModule(Lights* myDirLights, Lights* myPointLights);
|
|
|
|
void addEntity(PhongEntity* myEntity);
|
|
|
|
void virtual renderGL(Camera* myCamera);
|
|
};
|
|
|
|
#endif // PHONGMODULE_H
|