com.badlogic.gdx.physics.bullet.collision.btCollisionObjectArray 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 btCollisionObjectArray extends BulletBase {
public static btCollisionObjectArray WRAPPER_GEN_01 = new btCollisionObjectArray(false);
public btCollisionObject atConst(int n) {
// TODO impl
return null;
}
public btCollisionObjectArray(boolean cMemoryOwn) {
}
public btCollisionObjectArray() {
}
public int size() {
return sizeNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObjectArray);var returnedJSObj = jsObj.size();return returnedJSObj;")
private static native int sizeNATIVE(int addr);
public btCollisionObject at(int n) {
int pointer = atNATIVE((int) cPointer, n);
btCollisionObject.WRAPPER_GEN_01.setPointer(pointer);
return btCollisionObject.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr", "n"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObjectArray);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.btCollisionObjectArray);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.btCollisionObjectArray);var returnedJSObj = jsObj.capacity();return returnedJSObj;")
private static native int capacityNATIVE(int addr);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy