Implement Quaternions
Undefined behaviour of the light source
This commit is contained in:
@@ -28,12 +28,22 @@ Window::Window() {
|
||||
// Enable z buffer
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
||||
// Enable face culling
|
||||
glEnable(GL_CULL_FACE);
|
||||
glFrontFace(GL_CW);
|
||||
glCullFace(GL_FRONT);
|
||||
|
||||
// Disable mouse cursor
|
||||
#ifdef _DEBUG
|
||||
mouseCatched = false;
|
||||
#endif
|
||||
setCatchedCursor(mouseCatched);
|
||||
|
||||
// Maximize in release build
|
||||
#ifndef _DEBUG
|
||||
glfwMaximizeWindow(window);
|
||||
#endif
|
||||
|
||||
#ifdef _DEBUG
|
||||
std::cout << "OpenGL version: " << glGetString(GL_VERSION) << std::endl;
|
||||
glEnable(GL_DEBUG_OUTPUT);
|
||||
|
||||
Reference in New Issue
Block a user