diff --git a/OgreMain/include/Ogre.i b/OgreMain/include/Ogre.i index d7850673f65..bb0209c7241 100644 --- a/OgreMain/include/Ogre.i +++ b/OgreMain/include/Ogre.i @@ -189,6 +189,13 @@ typedef uint32_t uint32; typedef uint16_t uint16; typedef uint8_t uint8; +// correct out IntPtr for void* pData output parameter +%typemap(imtype, out="global::System.IntPtr") void *pData "out global::System.IntPtr" +%typemap(cstype, out="$csclassname") void *pData "out global::System.IntPtr" +%typemap(csin) void *pData "out $csinput" +%typecheck(SWIG_TYPECHECK_INT64_PTR) void *pData "" +// end of IntPtr correction + %ignore Ogre::HardwareBuffer::UsageEnum; %ignore Ogre::TextureUsage; %ignore Ogre::GpuConstantType;