Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /irrlicht_c/_ITexture.h [r14] .. [r15] Maximize Restore

  Switch to side-by-side view

--- a/irrlicht_c/_ITexture.h
+++ b/irrlicht_c/_ITexture.h
@@ -8,7 +8,11 @@
 
 //================= ITexture
 //IRRLICHT_C_API ITexture* ITexture_ctor(const io::path& name){return new ITexture(name);}
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
+IRRLICHT_C_API void* ITexture_lock(ITexture* pointer, bool readOnly = false, u32 mipmapLevel = 0){return pointer->lock(readOnly, mipmapLevel);}
+#else
 IRRLICHT_C_API void* ITexture_lock(ITexture* pointer, E_TEXTURE_LOCK_MODE mode = ETLM_READ_WRITE, u32 mipmapLevel = 0){return pointer->lock(mode, mipmapLevel);}
+#endif
 IRRLICHT_C_API void ITexture_unlock(ITexture* pointer){pointer->unlock();}
 IRRLICHT_C_API const dimension2d<u32>& ITexture_getOriginalSize(ITexture* pointer){return (const dimension2d<u32>&)pointer->getOriginalSize();}
 IRRLICHT_C_API const dimension2d<u32>& ITexture_getSize(ITexture* pointer){return (const dimension2d<u32>&)pointer->getSize();}