OSDN Git Service

Swig generated files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btPolyhedralContactClipping.java
index d43ec55..6f96875 100755 (executable)
@@ -13,32 +13,40 @@ import com.badlogic.gdx.math.Quaternion;
 import com.badlogic.gdx.math.Matrix3;\r
 import com.badlogic.gdx.math.Matrix4;\r
 \r
-public class btPolyhedralContactClipping {\r
-  private long swigCPtr;\r
-  protected boolean swigCMemOwn;\r
+public class btPolyhedralContactClipping extends BulletBase {\r
+       private long swigCPtr;\r
+       \r
+       protected btPolyhedralContactClipping(final String className, long cPtr, boolean cMemoryOwn) {\r
+               super(className, cPtr, cMemoryOwn);\r
+               swigCPtr = cPtr;\r
+       }\r
+       \r
+       protected btPolyhedralContactClipping(long cPtr, boolean cMemoryOwn) {\r
+               this("btPolyhedralContactClipping", cPtr, cMemoryOwn);\r
+               construct();\r
+       }\r
+       \r
+       public static long getCPtr(btPolyhedralContactClipping obj) {\r
+               return (obj == null) ? 0 : obj.swigCPtr;\r
+       }\r
 \r
-  protected btPolyhedralContactClipping(long cPtr, boolean cMemoryOwn) {\r
-    swigCMemOwn = cMemoryOwn;\r
-    swigCPtr = cPtr;\r
-  }\r
-\r
-  public static long getCPtr(btPolyhedralContactClipping obj) {\r
-    return (obj == null) ? 0 : obj.swigCPtr;\r
-  }\r
+       @Override\r
+       protected void finalize() throws Throwable {\r
+               if (!destroyed)\r
+                       destroy();\r
+               super.finalize();\r
+       }\r
 \r
-  protected void finalize() {\r
-    delete();\r
-  }\r
-\r
-  public synchronized void delete() {\r
-    if (swigCPtr != 0) {\r
-      if (swigCMemOwn) {\r
-        swigCMemOwn = false;\r
-        gdxBulletJNI.delete_btPolyhedralContactClipping(swigCPtr);\r
-      }\r
-      swigCPtr = 0;\r
-    }\r
-  }\r
+  @Override protected synchronized void delete() {\r
+               if (swigCPtr != 0) {\r
+                       if (swigCMemOwn) {\r
+                               swigCMemOwn = false;\r
+                               gdxBulletJNI.delete_btPolyhedralContactClipping(swigCPtr);\r
+                       }\r
+                       swigCPtr = 0;\r
+               }\r
+               super.delete();\r
+       }\r
 \r
   public static void clipHullAgainstHull(Vector3 separatingNormal, btConvexPolyhedron hullA, btConvexPolyhedron hullB, Matrix4 transA, Matrix4 transB, float minDist, float maxDist, SWIGTYPE_p_btDiscreteCollisionDetectorInterface__Result resultOut) {\r
     gdxBulletJNI.btPolyhedralContactClipping_clipHullAgainstHull(separatingNormal, btConvexPolyhedron.getCPtr(hullA), hullA, btConvexPolyhedron.getCPtr(hullB), hullB, transA, transB, minDist, maxDist, SWIGTYPE_p_btDiscreteCollisionDetectorInterface__Result.getCPtr(resultOut));\r