com.badlogic.gdx.physics.bullet.collision.btOverlappingPairCache 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;
/**
* @author xpenatan
*/
public class btOverlappingPairCache extends btOverlappingPairCallback {
public static btOverlappingPairCache WRAPPER_GEN_01 = new btOverlappingPairCache(false);
public btOverlappingPairCache(boolean cMemoryOwn) {
}
public btOverlappingPairCache() {
}
public void setInternalGhostPairCallback(btOverlappingPairCallback ghostPairCallback) {
setInternalGhostPairCallbackNATIVE((int) cPointer, (int) ghostPairCallback.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "ghostPairCallbackAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btOverlappingPairCache);jsObj.setInternalGhostPairCallback(ghostPairCallbackAddr);")
private static native void setInternalGhostPairCallbackNATIVE(int addr, int ghostPairCallbackAddr);
public btBroadphasePairArray getOverlappingPairArray() {
int pointer = getOverlappingPairArrayNATIVE((int) cPointer);
btBroadphasePairArray.WRAPPER_GEN_01.setPointer(pointer);
return btBroadphasePairArray.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btOverlappingPairCache);var returnedJSObj = jsObj.getOverlappingPairArray();return Bullet.getPointer(returnedJSObj);")
private static native int getOverlappingPairArrayNATIVE(int addr);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy