Home | History | Annotate | Download | only in linearmath
      1 %module(directors="1") LinearMath
      2 
      3 %{
      4 #ifndef BT_INFINITY
      5 static  int btInfinityMask = 0x7F800000;
      6 #define BT_INFINITY (*(float*)&btInfinityMask)
      7 #endif
      8 %}
      9 
     10 %feature("director") btIDebugDraw;
     11 
     12 %include "../common/gdxCommon.i"
     13 
     14 %ignore btHashString::getHash;
     15 %ignore btTypedObject::getObjectType;
     16 
     17 /*
     18  * btScalar.h defines macros the other types need, so process it first.
     19  * It also defines some static functions that end up in gdxBulletJNI.java.
     20  */
     21 %ignore btInfMaskConverter;
     22 %ignore btInfinityMask;
     23 %ignore btGetInfinityMask();
     24 %include "LinearMath/btScalar.h"
     25 
     26 %include "btTransform.i"
     27 
     28 %{
     29 #include <LinearMath/btVector3.h>
     30 %}
     31 %include <LinearMath/btVector3.h>
     32 
     33 %{
     34 #include <LinearMath/btQuaternion.h>
     35 %}
     36 %include <LinearMath/btQuaternion.h>
     37 
     38 %{
     39 #include <LinearMath/btQuadWord.h>
     40 %}
     41 #include <LinearMath/btQuadWord.h>
     42 
     43 %{
     44 #include <LinearMath/btMatrix3x3.h>
     45 %}
     46 #include <LinearMath/btMatrix3x3.h>
     47 
     48 %{
     49 #include <LinearMath/btAabbUtil2.h>
     50 %}
     51 %include "LinearMath/btAabbUtil2.h"
     52 
     53 %{
     54 #include <LinearMath/btIDebugDraw.h>
     55 %}
     56 %include "LinearMath/btIDebugDraw.h"
     57 
     58 %{
     59 #include <LinearMath/btGeometryUtil.h>
     60 
     61 bool btGeometryUtil::isInside(btAlignedObjectArray<btVector3> const&, btVector3 const&, float)
     62 {
     63 	return false;
     64 }
     65 %}
     66 %include "LinearMath/btGeometryUtil.h"
     67 
     68 %{
     69 #include <LinearMath/btRandom.h>
     70 %}
     71 %include "LinearMath/btRandom.h"
     72 
     73 %{
     74 #include <LinearMath/btTransformUtil.h>
     75 %}
     76 %include "LinearMath/btTransformUtil.h"
     77 
     78 %{
     79 #include <LinearMath/btConvexHull.h>
     80 %}
     81 %include "LinearMath/btConvexHull.h"
     82 
     83 %{
     84 #include <LinearMath/btGrahamScan2dConvexHull.h>
     85 %}
     86 %include "LinearMath/btGrahamScan2dConvexHull.h"
     87 
     88 %{
     89 #include <LinearMath/btPoolAllocator.h>
     90 %}
     91 %include "LinearMath/btPoolAllocator.h"
     92 
     93 %{
     94 #include <LinearMath/btQuickprof.h>
     95 %}
     96 %include "LinearMath/btQuickprof.h"
     97 
     98 %{
     99 #include <LinearMath/btConvexHullComputer.h>
    100 %}
    101 %include "LinearMath/btConvexHullComputer.h"
    102 
    103 %{
    104 #include <LinearMath/btAlignedObjectArray.h>
    105 %}
    106 %include "LinearMath/btAlignedObjectArray.h"
    107 
    108 %{
    109 #include <LinearMath/btList.h>
    110 %}
    111 %include "LinearMath/btList.h"
    112 
    113 %{
    114 #include <LinearMath/btAlignedAllocator.h>
    115 %}
    116 %include "LinearMath/btAlignedAllocator.h"
    117 
    118 %{
    119 #include <LinearMath/btHashMap.h>
    120 %}
    121 %include "LinearMath/btHashMap.h"
    122 
    123 %{
    124 #include <LinearMath/btStackAlloc.h>
    125 %}
    126 %include "LinearMath/btStackAlloc.h"
    127 
    128 %{
    129 #include <LinearMath/btMinMax.h>
    130 %}
    131 %include "LinearMath/btMinMax.h"
    132 
    133 %include "./btMotionState.i"
    134 
    135 %include "./btDefaultMotionState.i"
    136 
    137 #ifndef BT_NO_PROFILE
    138 void CProfileIterator::Enter_Largest_Child()
    139 {
    140 }
    141 #endif
    142 
    143 %template(btVector3Array) btAlignedObjectArray<btVector3>;
    144 %template(btScalarArray) btAlignedObjectArray<btScalar>;
    145