Some cleanups

This commit is contained in:
2021-01-13 19:03:47 +01:00
parent 89ae811beb
commit 0370a2e871
24 changed files with 321 additions and 237 deletions

View File

@@ -137,3 +137,28 @@ void Window::openGLDebugCallback(GLenum source, GLenum type, GLuint id, GLenum s
<< "Severity: " << severity << std::endl
<< std::endl;
}
GLFWwindow* Window::getGLFWwindow()
{
return window;
}
int Window::getWindowWidth()
{
return width;
}
int Window::getWindowHeight()
{
return height;
}
float Window::getWindowAspectRatio()
{
return (float) width / (float) height;
}
bool Window::getMouseIsCatched()
{
return mouseCatched;
}