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 b7d053e commit 4e0b4f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OgreMain/include/Ogre.i
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,15 @@ SHARED_PTR(StringInterface);
%include "OgreResource.h"
SHARED_PTR(Texture);
%ignore Ogre::Texture::setTreatLuminanceAsAlpha;

#ifdef SWIGCSHARP
// 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 ""
#endif

%include "OgreTexture.h"
SHARED_PTR(GpuProgram);
%ignore Ogre::GpuProgram::setAdjacencyInfoRequired;
Expand Down

0 comments on commit 4e0b4f8

Please sign in to comment.