OSDN Git Service

Merge commit '2c9030de2ddb983cfaeb5736089453b32c559cc1'
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btGjkConvexCast.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.5
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 public class btGjkConvexCast extends btConvexCast {
12         private long swigCPtr;
13
14         protected btGjkConvexCast (long cPtr, boolean cMemoryOwn) {
15                 super(gdxBulletJNI.btGjkConvexCast_SWIGUpcast(cPtr), cMemoryOwn);
16                 swigCPtr = cPtr;
17         }
18
19         public static long getCPtr (btGjkConvexCast obj) {
20                 return (obj == null) ? 0 : obj.swigCPtr;
21         }
22
23         protected void finalize () {
24                 delete();
25         }
26
27         public synchronized void delete () {
28                 if (swigCPtr != 0) {
29                         if (swigCMemOwn) {
30                                 swigCMemOwn = false;
31                                 gdxBulletJNI.delete_btGjkConvexCast(swigCPtr);
32                         }
33                         swigCPtr = 0;
34                 }
35                 super.delete();
36         }
37
38         public btGjkConvexCast (btConvexShape convexA, btConvexShape convexB, SWIGTYPE_p_btSimplexSolverInterface simplexSolver) {
39                 this(gdxBulletJNI.new_btGjkConvexCast(btConvexShape.getCPtr(convexA), convexA, btConvexShape.getCPtr(convexB), convexB,
40                         SWIGTYPE_p_btSimplexSolverInterface.getCPtr(simplexSolver)), true);
41         }
42
43 }