Add Window.DrawFPS()

This commit is contained in:
Rob Loach
2022-02-06 16:29:53 -05:00
committed by GitHub
parent a6dfd14c00
commit 7c608ff8cf

View File

@@ -336,6 +336,14 @@ class Window {
return ::GetFPS();
}
/**
* Draw current FPS
*/
inline Window& DrawFPS(int posX = 10, int posY = 10) {
::DrawFPS(posX, posY);
return *this;
}
/**
* Returns time in seconds for last frame drawn
*/