Home | History | Annotate | Download | only in softbody
      1 %module Softbody
      2 
      3 %include "arrays_java.i"
      4 
      5 %import "../linearmath/linearmath.i"
      6 %import "../collision/collision.i"
      7 %import "../dynamics/dynamics.i"
      8 
      9 %include "../common/gdxCommon.i"
     10 
     11 %include "../../swig-src/linearmath/classes.i"
     12 %include "../../swig-src/collision/classes.i"
     13 %include "../../swig-src/dynamics/classes.i"
     14 
     15 %typemap(javaimports) SWIGTYPE	%{
     16 import com.badlogic.gdx.physics.bullet.BulletBase;
     17 import com.badlogic.gdx.physics.bullet.linearmath.*;
     18 import com.badlogic.gdx.physics.bullet.collision.*;
     19 import com.badlogic.gdx.physics.bullet.dynamics.*;
     20 import com.badlogic.gdx.math.Vector3;
     21 import com.badlogic.gdx.math.Quaternion;
     22 import com.badlogic.gdx.math.Matrix3;
     23 import com.badlogic.gdx.math.Matrix4;
     24 %}
     25 %pragma(java) jniclassimports=%{
     26 import com.badlogic.gdx.physics.bullet.BulletBase;
     27 import com.badlogic.gdx.physics.bullet.linearmath.*;
     28 import com.badlogic.gdx.physics.bullet.collision.*;
     29 import com.badlogic.gdx.physics.bullet.dynamics.*;
     30 import com.badlogic.gdx.math.Vector3;
     31 import com.badlogic.gdx.math.Quaternion;
     32 import com.badlogic.gdx.math.Matrix3;
     33 import com.badlogic.gdx.math.Matrix4;
     34 import com.badlogic.gdx.utils.Pool;
     35 %}
     36 %pragma(java) moduleimports=%{
     37 import com.badlogic.gdx.physics.bullet.BulletBase;
     38 import com.badlogic.gdx.physics.bullet.linearmath.*;
     39 import com.badlogic.gdx.physics.bullet.collision.*;
     40 import com.badlogic.gdx.physics.bullet.dynamics.*;
     41 import com.badlogic.gdx.math.Vector3;
     42 import com.badlogic.gdx.math.Quaternion;
     43 import com.badlogic.gdx.math.Matrix3;
     44 import com.badlogic.gdx.math.Matrix4;
     45 %}
     46 
     47 %{
     48 #include <BulletCollision/CollisionDispatch/btCollisionWorld.h>
     49 typedef btCollisionWorld::RayResultCallback RayResultCallback;
     50 %}
     51 
     52 %{
     53 #include <BulletSoftBody/btSoftBodySolvers.h>
     54 %}
     55 %include "BulletSoftBody/btSoftBodySolvers.h"
     56 
     57 %{
     58 #include <BulletSoftBody/btDefaultSoftBodySolver.h>
     59 %}
     60 %include "BulletSoftBody/btDefaultSoftBodySolver.h"
     61 
     62 %{
     63 #include <BulletSoftBody/btSparseSDF.h>
     64 %}
     65 %include "BulletSoftBody/btSparseSDF.h"
     66 
     67 %include "./btSoftBody.i"
     68 
     69 %{
     70 #include <BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.h>
     71 %}
     72 %include "BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.h"
     73 
     74 %{
     75 #include <BulletSoftBody/btSoftBodyData.h>
     76 %}
     77 %include "BulletSoftBody/btSoftBodyData.h"
     78 
     79 %{
     80 #include <BulletSoftBody/btSoftBodyHelpers.h>
     81 %}
     82 %include "BulletSoftBody/btSoftBodyHelpers.h"
     83 
     84 %{
     85 #include <BulletSoftBody/btSoftBodyInternals.h>
     86 %}
     87 %include "BulletSoftBody/btSoftBodyInternals.h"
     88 
     89 %{
     90 #include <BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h>
     91 %}
     92 %include "BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h"
     93 
     94 %{
     95 #include <BulletSoftBody/btSoftBodySolverVertexBuffer.h>
     96 %}
     97 %include "BulletSoftBody/btSoftBodySolverVertexBuffer.h"
     98 
     99 %{
    100 #include <BulletSoftBody/btSoftRigidCollisionAlgorithm.h>
    101 %}
    102 %include "BulletSoftBody/btSoftRigidCollisionAlgorithm.h"
    103 
    104 %{
    105 #include <BulletSoftBody/btSoftRigidDynamicsWorld.h>
    106 %}
    107 %include "BulletSoftBody/btSoftRigidDynamicsWorld.h"
    108 
    109 %{
    110 #include <BulletSoftBody/btSoftSoftCollisionAlgorithm.h>
    111 %}
    112 %include "BulletSoftBody/btSoftSoftCollisionAlgorithm.h"
    113