1 #define gdxToString(X) "X" 2 3 // Used by the classes.i files 4 %define SPECIFY_CLASS(TYPE, PACKAGE) 5 %typemap("javapackage") TYPE, TYPE *, TYPE & gdxToString(PACKAGE); 6 %enddef 7 8 %{ 9 #include <gdx/common/jniHelpers.h> 10 %} 11 12 %rename("%(strip:[m_])s", %$ismember, %$ispublic, %$not %$isclass, %$not %$istemplate, %$not %$isfunction, regexmatch$name="m_.*$") ""; 13 %ignore btHashString::getHash; 14 %ignore btTypedObject::getObjectType; 15 16 %include "arrays_java.i" 17 18 %include "../common/gdxDefault.i" 19 20 /* Configures types that need down cast support */ 21 %include "../common/gdxDownCast.i" 22 23 /* 24 * Use java.nio.Buffer where Bullet wants btScalar * and alike. This gets disabled 25 * for some types (and re-enabled right after). 26 */ 27 %include "../common/gdxBuffers.i" 28 %include "../common/gdxEnableBuffers.i" 29 30 %include "../common/gdxCriticalArrays.i" 31 32 %include "../common/gdxPool.i" 33 %include "../common/gdxPooledTypemap.i" 34 35 %include "../common/gdxPooledObject.i" 36 37 38 /* Map "void *" to "jlong". */ 39 %include "gdxVoidPointer.i"; 40 41 /* Use "unsafe" enums (plain integer constants) instead of typesafe enum classes. */ 42 %include "enumtypeunsafe.swg" 43 %javaconst(1); 44 45 /* Include Java imports for all the types we'll need in all extensions/custom types. */ 46 %include "../common/gdxJavaImports.i" 47 48 %{ 49 #include <stdint.h> 50 %} 51 52 //%include "common/gdxManagedObject.i" 53 54 /* Prefer libgdx's linear math types (Vector3, Matrix3, etc.). */ 55 %include "../common/gdxMathTypes.i" 56