From 15e6d1f6d44cb339512c2bf886452b00e7fbed11 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Mon, 18 Nov 2024 18:52:12 +0100 Subject: [PATCH] Csharp: correctly wrap getCustomAttribute output *void --- OgreMain/include/Ogre.i | 7 +++++++ 1 file changed, 7 insertions(+) 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;