1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\r
5 * Do not make changes to this file unless you know what you are doing--modify
\r
6 * the SWIG interface file instead.
\r
7 * ----------------------------------------------------------------------------- */
\r
9 package com.badlogic.gdx.physics.bullet;
\r
11 import com.badlogic.gdx.math.Vector3;
\r
12 import com.badlogic.gdx.math.Quaternion;
\r
13 import com.badlogic.gdx.math.Matrix3;
\r
14 import com.badlogic.gdx.math.Matrix4;
\r
16 public class btHashPtr extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btHashPtr(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btHashPtr(long cPtr, boolean cMemoryOwn) {
\r
25 this("btHashPtr", cPtr, cMemoryOwn);
\r
30 protected void reset(long cPtr, boolean cMemoryOwn) {
\r
33 super.reset(swigCPtr = cPtr, cMemoryOwn);
\r
36 public static long getCPtr(btHashPtr obj) {
\r
37 return (obj == null) ? 0 : obj.swigCPtr;
\r
41 protected void finalize() throws Throwable {
\r
47 @Override protected synchronized void delete() {
\r
48 if (swigCPtr != 0) {
\r
50 swigCMemOwn = false;
\r
51 gdxBulletJNI.delete_btHashPtr(swigCPtr);
\r
58 public btHashPtr(SWIGTYPE_p_void ptr) {
\r
59 this(gdxBulletJNI.new_btHashPtr(SWIGTYPE_p_void.getCPtr(ptr)), true);
\r
62 public SWIGTYPE_p_void getPointer() {
\r
63 long cPtr = gdxBulletJNI.btHashPtr_getPointer(swigCPtr, this);
\r
64 return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
\r
67 public boolean equals(btHashPtr other) {
\r
68 return gdxBulletJNI.btHashPtr_equals(swigCPtr, this, btHashPtr.getCPtr(other), other);
\r
71 public long getHash() {
\r
72 return gdxBulletJNI.btHashPtr_getHash(swigCPtr, this);
\r