Proper GLFW message handling and pinkness!

This commit is contained in:
sippeangelo
2015-11-30 17:28:24 +01:00
parent 872879c013
commit 793b2f44cc
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ public:
Game(int argc, char* argv[]); Game(int argc, char* argv[]);
~Game(); ~Game();
bool Running() const { return true; } bool Running() const { return !glfwWindowShouldClose(m_Renderer->Window()); }
void Tick(); void Tick();
private: private:
+2
View File
@@ -51,6 +51,8 @@ void DummyRenderer::Initialize()
void DummyRenderer::Draw(RenderQueueCollection& rq) void DummyRenderer::Draw(RenderQueueCollection& rq)
{ {
glClearColor(255.f / 255, 163.f / 255, 176.f / 255, 0.f);
glClear(GL_COLOR_BUFFER_BIT);
glfwSwapBuffers(m_Window); glfwSwapBuffers(m_Window);
} }