0
I’m using SWIG to be able to use a C++ code in C# (Ogre3d for the curious)
I have the following method in C++:
bool suggestTangentVectorBuildParams(VertexElementSemantic targetSemantic,
unsigned short& outSourceCoordSet, unsigned short& outIndex)
But SWIG cannot convert the type unsigned short&
, then on C# it’s like this:
public bool suggestTangentVectorBuildParams(VertexElementSemantic targetSemantic,
SWIGTYPE_p_unsigned_short outSourceCoordSet, SWIGTYPE_p_unsigned_short outIndex)
Where is SWIGTYPE_p_unsigned_short
was meant to be out ushort
.
I tried to touch the SWIG interface putting this line to try to convert but it did not work, still continues SWIGTYPE_p_unsigned_short
:
%typemap(cstype) unsigned short& "out ushort"
Where am I going wrong?