1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package com.badlogic.gdx.physics.bullet;
11 import com.badlogic.gdx.utils.SharedLibraryLoader;
12 import com.badlogic.gdx.math.Vector3;
13 import com.badlogic.gdx.math.Quaternion;
14 import com.badlogic.gdx.math.Matrix3;
16 public class btGEN_List {
17 private long swigCPtr;
18 protected boolean swigCMemOwn;
20 protected btGEN_List(long cPtr, boolean cMemoryOwn) {
21 swigCMemOwn = cMemoryOwn;
25 public static long getCPtr(btGEN_List obj) {
26 return (obj == null) ? 0 : obj.swigCPtr;
29 protected void finalize() {
33 public synchronized void delete() {
37 gdxBulletJNI.delete_btGEN_List(swigCPtr);
44 new SharedLibraryLoader().load("gdx-bullet");
48 this(gdxBulletJNI.new_btGEN_List(), true);
51 public btGEN_Link getHead() {
52 long cPtr = gdxBulletJNI.btGEN_List_getHead(swigCPtr, this);
53 return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
56 public btGEN_Link getTail() {
57 long cPtr = gdxBulletJNI.btGEN_List_getTail(swigCPtr, this);
58 return (cPtr == 0) ? null : new btGEN_Link(cPtr, false);
61 public void addHead(btGEN_Link link) {
62 gdxBulletJNI.btGEN_List_addHead(swigCPtr, this, btGEN_Link.getCPtr(link), link);
65 public void addTail(btGEN_Link link) {
66 gdxBulletJNI.btGEN_List_addTail(swigCPtr, this, btGEN_Link.getCPtr(link), link);