27 lines
496 B
C++
27 lines
496 B
C++
#ifndef PHONGENTITY_H
|
|
#define PHONGENTITY_H
|
|
|
|
#include "glm/mat4x4.hpp"
|
|
|
|
class Mesh;
|
|
class Material;
|
|
class Shader;
|
|
|
|
#include "entity.h"
|
|
|
|
class PhongEntity : public Entity
|
|
{
|
|
protected:
|
|
Mesh* mesh;
|
|
Material* mat;
|
|
glm::mat4 modelMatrix;
|
|
public:
|
|
PhongEntity(Mesh* myMesh, Material* myMat);
|
|
virtual void draw(const glm::mat4 viewMatrix, const glm::mat4 projectionMatrix);
|
|
glm::mat4* getTransform();
|
|
Shader* getShader();
|
|
Material* getMaterial();
|
|
};
|
|
|
|
#endif // PHONGENTITY_H
|