OSDN Git Service

Merge pull request #141 from xoppa/bullet2
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btOverlapFilterCallback.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.8
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package com.badlogic.gdx.physics.bullet;
10
11 import com.badlogic.gdx.math.Vector3;
12 import com.badlogic.gdx.math.Quaternion;
13 import com.badlogic.gdx.math.Matrix3;
14 import com.badlogic.gdx.math.Matrix4;
15
16 public class btOverlapFilterCallback {
17   private long swigCPtr;
18   protected boolean swigCMemOwn;
19
20   protected btOverlapFilterCallback(long cPtr, boolean cMemoryOwn) {
21     swigCMemOwn = cMemoryOwn;
22     swigCPtr = cPtr;
23   }
24
25   public static long getCPtr(btOverlapFilterCallback obj) {
26     return (obj == null) ? 0 : obj.swigCPtr;
27   }
28
29   protected void finalize() {
30     delete();
31   }
32
33   public synchronized void delete() {
34     if (swigCPtr != 0) {
35       if (swigCMemOwn) {
36         swigCMemOwn = false;
37         gdxBulletJNI.delete_btOverlapFilterCallback(swigCPtr);
38       }
39       swigCPtr = 0;
40     }
41   }
42
43   public boolean needBroadphaseCollision(btBroadphaseProxy proxy0, btBroadphaseProxy proxy1) {
44     return gdxBulletJNI.btOverlapFilterCallback_needBroadphaseCollision(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0, btBroadphaseProxy.getCPtr(proxy1), proxy1);
45   }
46
47 }