]> git.jsancho.org Git - c-irrlicht.git/commitdiff
getFPS
authorJavier Sancho <jsf@jsancho.org>
Sun, 20 Oct 2019 17:03:10 +0000 (19:03 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 20 Oct 2019 17:03:10 +0000 (19:03 +0200)
include/IVideoDriver.h
src/IVideoDriver.cpp

index b37cde8d3915ad84c8c309e68c3b2aa78d259b8c..9e93413cc5fd2784c756ced29e3a06f22748cd2d 100644 (file)
@@ -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);
index 7101961ac5e23a7d8ba2e8337fbb0bb603e6feea..0033729a3d5715f7047991e4c4b10187eef4f866 100644 (file)
@@ -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)