]> git.jsancho.org Git - c-irrlicht.git/commitdiff
get texture
authorJavier Sancho <jsf@jsancho.org>
Sun, 13 Oct 2019 16:23:12 +0000 (18:23 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 13 Oct 2019 16:23:12 +0000 (18:23 +0200)
include/IVideoDriver.h
src/IVideoDriver.cpp

index 042ee6b79265cc120c3ce58192959fe855171bd7..ea9ef5162d31b1da9c913334b7acfb56d9f896a5 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef __C_IRR_I_VIDEO_DRIVER_H_INCLUDED__
 #define __C_IRR_I_VIDEO_DRIVER_H_INCLUDED__
 
+#include "ITexture.h"
 #include "SColor.h"
 #include "SExposedVideoData.h"
 #include "rect.h"
@@ -43,6 +44,10 @@ extern "C" {
   bool
   irr_video_IVideoDriver_endScene(irr_video_IVideoDriver* driver);
 
+  irr_video_ITexture*
+  irr_video_IVideoDriver_getTexture(irr_video_IVideoDriver* driver,
+                                    const char* filename);
+
 #ifdef __cplusplus
 }
 #endif
index 8f3edbc9d869cb369e3759f39714c9007f366735..cf703b6aba01ffcc64305564b58ba2227217c9cf 100644 (file)
@@ -62,4 +62,13 @@ extern "C" {
   {
     return ((irr::video::IVideoDriver*)driver)->endScene();
   }
+
+  irr_video_ITexture*
+  irr_video_IVideoDriver_getTexture(irr_video_IVideoDriver* driver,
+                                    const char* filename)
+  {
+    return (irr_video_ITexture*)
+      ((irr::video::IVideoDriver*)driver)->getTexture(filename);
+  }
+
 }