com.badlogic.gdx.physics.bullet.collision.btDispatcher 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 btDispatcher extends BulletBase {
public static btDispatcher WRAPPER_GEN_01 = new btDispatcher(false);
public btDispatcher(boolean cMemoryOwn) {
}
public btDispatcher() {
}
public int getNumManifolds() {
return getNumManifoldsNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDispatcher);var returnedJSObj = jsObj.getNumManifolds();return returnedJSObj;")
private static native int getNumManifoldsNATIVE(int addr);
public btPersistentManifold getManifoldByIndexInternal(int index) {
int pointer = getManifoldByIndexInternalNATIVE((int) cPointer, index);
btPersistentManifold.WRAPPER_GEN_01.setPointer(pointer);
return btPersistentManifold.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr", "index"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDispatcher);var returnedJSObj = jsObj.getManifoldByIndexInternal(index);return Bullet.getPointer(returnedJSObj);")
private static native int getManifoldByIndexInternalNATIVE(int addr, int index);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy