Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

34 рядки
906 B

  1. %{
  2. #include "aiMaterial.h"
  3. %}
  4. ASSIMP_ARRAY(aiMaterial, aiMaterialProperty*, mProperties, $self->mNumProperties)
  5. %include <typemaps.i>
  6. %apply enum SWIGTYPE *OUTPUT { aiTextureMapping* mapping };
  7. %apply unsigned int *OUTPUT { unsigned int* uvindex };
  8. %apply float *OUTPUT { float* blend };
  9. %apply enum SWIGTYPE *OUTPUT { aiTextureOp* op };
  10. %apply unsigned int *OUTPUT { unsigned int* flags };
  11. %include "aiMaterial.h"
  12. %clear unsigned int* flags;
  13. %clear aiTextureOp* op;
  14. %clear float *blend;
  15. %clear unsigned int* uvindex;
  16. %clear aiTextureMapping* mapping;
  17. %apply int &OUTPUT { int &pOut };
  18. %apply float &OUTPUT { float &pOut };
  19. %template(GetInteger) aiMaterial::Get<int>;
  20. %template(GetFloat) aiMaterial::Get<float>;
  21. %template(GetColor4D) aiMaterial::Get<aiColor4D>;
  22. %template(GetColor3D) aiMaterial::Get<aiColor3D>;
  23. %template(GetString) aiMaterial::Get<aiString>;
  24. %clear int &pOut;
  25. %clear float &pOut;