From 69d811182f2f282f9c8f558f26d92e34417d6526 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sun, 20 Oct 2019 19:03:10 +0200 Subject: [PATCH] getFPS --- include/IVideoDriver.h | 3 +++ src/IVideoDriver.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/include/IVideoDriver.h b/include/IVideoDriver.h index b37cde8..9e93413 100644 --- a/include/IVideoDriver.h +++ b/include/IVideoDriver.h @@ -44,6 +44,9 @@ extern "C" { int irr_video_endScene(irr_video_IVideoDriver* driver); + int + irr_getFPS(irr_video_IVideoDriver* driver); + irr_video_ITexture* irr_video_getTexture(irr_video_IVideoDriver* driver, const char* filename); diff --git a/src/IVideoDriver.cpp b/src/IVideoDriver.cpp index 7101961..0033729 100644 --- a/src/IVideoDriver.cpp +++ b/src/IVideoDriver.cpp @@ -64,6 +64,12 @@ extern "C" { return ((irr::video::IVideoDriver*)driver)->endScene(); } + int + irr_getFPS(irr_video_IVideoDriver* driver) + { + return ((irr::video::IVideoDriver*)driver)->getFPS(); + } + irr_video_ITexture* irr_video_getTexture(irr_video_IVideoDriver* driver, const char* filename) -- 2.39.5