This commit is contained in:
Adam
2014-03-14 01:50:37 +01:00
parent 9a2bdf8c11
commit 72c06231ad
27 changed files with 1368 additions and 7 deletions
+8
View File
@@ -20,6 +20,7 @@
#include "ShaderProgram.h"
#include "Model.h"
#include "Components/PointLight.h"
#include "Skybox.h"
class Renderer
{
@@ -71,6 +72,9 @@ public:
void DrawWireframe(bool val) { m_DrawWireframe = val; }
bool DrawBounds() const { return m_DrawBounds; }
void DrawBounds(bool val) { m_DrawBounds = val; }
void DrawSkybox();
private:
GLFWwindow* m_Window;
@@ -81,6 +85,8 @@ private:
bool m_DrawWireframe;
bool m_DrawBounds;
std::shared_ptr<Skybox> m_Skybox;
int m_ShadowMapRes;
glm::vec3 m_SunPosition;
glm::vec3 m_SunTarget;
@@ -98,6 +104,7 @@ private:
ShaderProgram m_ShaderProgramShadows;
ShaderProgram m_ShaderProgramShadowsDrawDepth;
ShaderProgram m_ShaderProgramDebugAABB;
ShaderProgram m_ShaderProgramSkybox;
void ClearStuff();
void DrawScene();
@@ -107,6 +114,7 @@ private:
GLuint CreateQuad();
void DrawDebugShadowMap();
GLuint CreateAABB();
GLuint CreateSkybox(void);
};