mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Trying noise but poorly for now
This commit is contained in:
@ -118,6 +118,8 @@ void Window::display()
|
||||
lastTime = currentTime;
|
||||
_fps = 1.0f / delta;
|
||||
|
||||
_frameCount++;
|
||||
|
||||
glfwSwapBuffers(_window);
|
||||
}
|
||||
void Window::pollEvents()
|
||||
@ -140,4 +142,9 @@ GLFWwindow *Window::getWindow(void) const
|
||||
float Window::getFps(void) const
|
||||
{
|
||||
return (_fps);
|
||||
}
|
||||
|
||||
int Window::getFrameCount(void) const
|
||||
{
|
||||
return (_frameCount);
|
||||
}
|
Reference in New Issue
Block a user