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 btStackAlloc {
\r
17 private long swigCPtr;
\r
18 protected boolean swigCMemOwn;
\r
20 protected btStackAlloc(long cPtr, boolean cMemoryOwn) {
\r
21 swigCMemOwn = cMemoryOwn;
\r
25 public static long getCPtr(btStackAlloc obj) {
\r
26 return (obj == null) ? 0 : obj.swigCPtr;
\r
29 protected void finalize() {
\r
33 public synchronized void delete() {
\r
34 if (swigCPtr != 0) {
\r
36 swigCMemOwn = false;
\r
37 gdxBulletJNI.delete_btStackAlloc(swigCPtr);
\r
43 public btStackAlloc(long size) {
\r
44 this(gdxBulletJNI.new_btStackAlloc(size), true);
\r
47 public void create(long size) {
\r
48 gdxBulletJNI.btStackAlloc_create(swigCPtr, this, size);
\r
51 public void destroy() {
\r
52 gdxBulletJNI.btStackAlloc_destroy(swigCPtr, this);
\r
55 public int getAvailableMemory() {
\r
56 return gdxBulletJNI.btStackAlloc_getAvailableMemory(swigCPtr, this);
\r
59 public java.nio.ByteBuffer allocate(long size) {
\r
60 return gdxBulletJNI.btStackAlloc_allocate(swigCPtr, this, size);
\r
63 public btBlock beginBlock() {
\r
64 long cPtr = gdxBulletJNI.btStackAlloc_beginBlock(swigCPtr, this);
\r
65 return (cPtr == 0) ? null : new btBlock(cPtr, false);
\r
68 public void endBlock(btBlock block) {
\r
69 gdxBulletJNI.btStackAlloc_endBlock(swigCPtr, this, btBlock.getCPtr(block), block);
\r