From 058f98a63658dc1a2579826ba167fd61bed1e21f Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 4 Mar 2022 10:47:15 -0600 Subject: add assimp submodule --- .../assimp-master/port/swig/interface/aiMaterial.i | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/mesh/assimp-master/port/swig/interface/aiMaterial.i (limited to 'src/mesh/assimp-master/port/swig/interface/aiMaterial.i') diff --git a/src/mesh/assimp-master/port/swig/interface/aiMaterial.i b/src/mesh/assimp-master/port/swig/interface/aiMaterial.i new file mode 100644 index 0000000..630e6b7 --- /dev/null +++ b/src/mesh/assimp-master/port/swig/interface/aiMaterial.i @@ -0,0 +1,33 @@ +%{ +#include "aiMaterial.h" +%} + +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 }; +%apply unsigned int *OUTPUT { unsigned int* flags }; + +%include "aiMaterial.h" + +%clear unsigned int* flags; +%clear aiTextureOp* op; +%clear float *blend; +%clear unsigned int* uvindex; +%clear aiTextureMapping* mapping; + + +%apply int &OUTPUT { int &pOut }; +%apply float &OUTPUT { float &pOut }; + +%template(GetInteger) aiMaterial::Get; +%template(GetFloat) aiMaterial::Get; +%template(GetColor4D) aiMaterial::Get; +%template(GetColor3D) aiMaterial::Get; +%template(GetString) aiMaterial::Get; + +%clear int &pOut; +%clear float &pOut; -- cgit v1.2.1