Proper GLFW message handling and pinkness!
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ public:
|
||||
Game(int argc, char* argv[]);
|
||||
~Game();
|
||||
|
||||
bool Running() const { return true; }
|
||||
bool Running() const { return !glfwWindowShouldClose(m_Renderer->Window()); }
|
||||
void Tick();
|
||||
|
||||
private:
|
||||
|
||||
@@ -51,6 +51,8 @@ void DummyRenderer::Initialize()
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user