com.badlogic.gdx.physics.bullet.collision.btBroadphasePairArray Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-bullet-teavm Show documentation
Show all versions of gdx-bullet-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
/*-------------------------------------------------------
* This file was generated by JParser
*
* Do not make changes to this file
*-------------------------------------------------------*/
package com.badlogic.gdx.physics.bullet.collision;
import com.badlogic.gdx.physics.bullet.BulletBase;
/**
* @author xpenatan
*/
public class btBroadphasePairArray extends BulletBase {
public static btBroadphasePairArray WRAPPER_GEN_01 = new btBroadphasePairArray(false);
public btBroadphasePairArray(boolean cMemoryOwn) {
}
public btBroadphasePairArray() {
}
public int size() {
return sizeNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btBroadphasePairArray);var returnedJSObj = jsObj.size();return returnedJSObj;")
private static native int sizeNATIVE(int addr);
public btBroadphasePair at(int n) {
int pointer = atNATIVE((int) cPointer, n);
btBroadphasePair.WRAPPER_GEN_01.setPointer(pointer);
return btBroadphasePair.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr", "n"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btBroadphasePairArray);var returnedJSObj = jsObj.at(n);return Bullet.getPointer(returnedJSObj);")
private static native int atNATIVE(int addr, int n);
public void resize(int value) {
resizeNATIVE((int) cPointer, value);
}
@org.teavm.jso.JSBody(params = {"addr", "value"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btBroadphasePairArray);jsObj.resize(value);")
private static native void resizeNATIVE(int addr, int value);
public int capacity() {
return capacityNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btBroadphasePairArray);var returnedJSObj = jsObj.capacity();return returnedJSObj;")
private static native int capacityNATIVE(int addr);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy