SWIG: More output parameter handling using <typemaps.i>.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@770 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -4,9 +4,20 @@
|
||||
|
||||
ASSIMP_ARRAY(aiMaterial, aiMaterialProperty*, mProperties, $self->mNumProperties)
|
||||
|
||||
%include <typemaps.i>
|
||||
%apply enum SWIGTYPE *OUTPUT { aiTextureMapping* mapping };
|
||||
%apply unsigned int *OUTPUT { unsigned int* uvindex };
|
||||
%apply float *OUTPUT { float* blend };
|
||||
%apply enum SWIGTYPE *OUTPUT { aiTextureOp* op };
|
||||
|
||||
%include "aiMaterial.h"
|
||||
|
||||
%include <typemaps.i>
|
||||
%clear aiTextureOp* op;
|
||||
%clear float *blend;
|
||||
%clear unsigned int* uvindex;
|
||||
%clear aiTextureMapping* mapping;
|
||||
|
||||
|
||||
%apply int &OUTPUT { int &pOut };
|
||||
%apply float &OUTPUT { float &pOut };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user