From 7c608ff8cf447544ee2de9fcdf21373e896f1685 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 6 Feb 2022 16:29:53 -0500 Subject: [PATCH] Add Window.DrawFPS() --- include/Window.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/Window.hpp b/include/Window.hpp index 9e1a4940..477c4a95 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -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 */