Various changes for the Graphics Labs.

This commit is contained in:
bartvbl
2016-09-20 15:17:19 +02:00
committed by Aleksander Rognhaugen
parent 080537f909
commit fd306e2e7d
6 changed files with 70 additions and 3 deletions

View File

@@ -12,9 +12,14 @@ void runProgram(GLFWwindow* mWindow)
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
// Configure miscellaneous OpenGL settings
glEnable(GL_CULL_FACE);
// Set default colour after clearing the colour buffer
glClearColor(0.3f, 0.3f, 0.4f, 1.0f);
// Set up your scene here (create Vertex Array Objects, etc)
// Rendering Loop
while (!glfwWindowShouldClose(mWindow))
{
@@ -24,6 +29,8 @@ void runProgram(GLFWwindow* mWindow)
// Handle other events
glfwPollEvents();
// Draw your scene here
// Flip buffers
glfwSwapBuffers(mWindow);
}