mirror of
https://github.com/brammie15/VoxelRenderer.git
synced 2025-12-18 10:39:20 +01:00
Various changes for the Graphics Labs.
This commit is contained in:
committed by
Aleksander Rognhaugen
parent
080537f909
commit
fd306e2e7d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user