Skip to content

Commit 4e0b4f8

Browse files
committed
Csharp: correctly wrap getCustomAttribute output *void
1 parent b7d053e commit 4e0b4f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

OgreMain/include/Ogre.i

+9
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,15 @@ SHARED_PTR(StringInterface);
586586
%include "OgreResource.h"
587587
SHARED_PTR(Texture);
588588
%ignore Ogre::Texture::setTreatLuminanceAsAlpha;
589+
590+
#ifdef SWIGCSHARP
591+
// correct out IntPtr for void* pData output parameter
592+
%typemap(imtype, out="global::System.IntPtr") void *pData "out global::System.IntPtr"
593+
%typemap(cstype, out="$csclassname") void *pData "out global::System.IntPtr"
594+
%typemap(csin) void *pData "out $csinput"
595+
%typecheck(SWIG_TYPECHECK_INT64_PTR) void *pData ""
596+
#endif
597+
589598
%include "OgreTexture.h"
590599
SHARED_PTR(GpuProgram);
591600
%ignore Ogre::GpuProgram::setAdjacencyInfoRequired;

0 commit comments

Comments
 (0)