diff options
author | sanine <sanine.not@pm.me> | 2022-04-16 11:55:09 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-04-16 11:55:09 -0500 |
commit | db81b925d776103326128bf629cbdda576a223e7 (patch) | |
tree | 58bea8155c686733310009f6bed7363f91fbeb9d /libs/assimp/port/swig/interface/aiMaterial.i | |
parent | 55860037b14fb3893ba21cf2654c83d349cc1082 (diff) |
move 3rd-party librarys into libs/ and add built-in honeysuckle
Diffstat (limited to 'libs/assimp/port/swig/interface/aiMaterial.i')
-rw-r--r-- | libs/assimp/port/swig/interface/aiMaterial.i | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libs/assimp/port/swig/interface/aiMaterial.i b/libs/assimp/port/swig/interface/aiMaterial.i new file mode 100644 index 0000000..630e6b7 --- /dev/null +++ b/libs/assimp/port/swig/interface/aiMaterial.i @@ -0,0 +1,33 @@ +%{ +#include "aiMaterial.h" +%} + +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 }; +%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<int>; +%template(GetFloat) aiMaterial::Get<float>; +%template(GetColor4D) aiMaterial::Get<aiColor4D>; +%template(GetColor3D) aiMaterial::Get<aiColor3D>; +%template(GetString) aiMaterial::Get<aiString>; + +%clear int &pOut; +%clear float &pOut; |