2010-03-12 17:26:57 +00:00
|
|
|
%{
|
|
|
|
#include "aiMaterial.h"
|
|
|
|
%}
|
|
|
|
|
2010-07-07 22:01:51 +00:00
|
|
|
ASSIMP_ARRAY(aiMaterial, aiMaterialProperty*, mProperties, $self->mNumProperties)
|
|
|
|
|
2010-07-08 20:09:50 +00:00
|
|
|
%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 };
|
2010-07-09 18:00:34 +00:00
|
|
|
%apply unsigned int *OUTPUT { unsigned int* flags };
|
2010-07-08 20:09:50 +00:00
|
|
|
|
2010-03-12 17:26:57 +00:00
|
|
|
%include "aiMaterial.h"
|
|
|
|
|
2010-07-09 18:00:34 +00:00
|
|
|
%clear unsigned int* flags;
|
2010-07-08 20:09:50 +00:00
|
|
|
%clear aiTextureOp* op;
|
|
|
|
%clear float *blend;
|
|
|
|
%clear unsigned int* uvindex;
|
|
|
|
%clear aiTextureMapping* mapping;
|
|
|
|
|
|
|
|
|
2010-03-12 17:26:57 +00:00
|
|
|
%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;
|