mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
Add Window.DrawFPS()
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user