From edb2fca8d618694f24c8f99959d2aab944f18c2c Mon Sep 17 00:00:00 2001 From: klickverbot Date: Thu, 8 Jul 2010 20:09:50 +0000 Subject: [PATCH] SWIG: More output parameter handling using . git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@770 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- port/swig/interface/aiMaterial.i | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/port/swig/interface/aiMaterial.i b/port/swig/interface/aiMaterial.i index 19177e5c8..0d87da5a7 100644 --- a/port/swig/interface/aiMaterial.i +++ b/port/swig/interface/aiMaterial.i @@ -4,9 +4,20 @@ ASSIMP_ARRAY(aiMaterial, aiMaterialProperty*, mProperties, $self->mNumProperties) +%include +%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 +%clear aiTextureOp* op; +%clear float *blend; +%clear unsigned int* uvindex; +%clear aiTextureMapping* mapping; + + %apply int &OUTPUT { int &pOut }; %apply float &OUTPUT { float &pOut };