Skip to content

Commit

Permalink
Csharp: correctly wrap getCustomAttribute output *void
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Nov 20, 2024
1 parent a1ee84b commit 15e6d1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OgreMain/include/Ogre.i
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15e6d1f

Please sign in to comment.