From: Javier Sancho Date: Sun, 20 Oct 2019 17:03:10 +0000 (+0200) Subject: getFPS X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=69d811182f2f282f9c8f558f26d92e34417d6526;p=c-irrlicht.git getFPS --- 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)