com.badlogic.gdx.physics.bullet.collision.btShapeHull 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 btShapeHull extends BulletBase {
public static btShapeHull WRAPPER_GEN_01 = new btShapeHull(false);
public btShapeHull(btConvexShape shape) {
initObject(createNative((int) shape.getCPointer()), true);
}
@org.teavm.jso.JSBody(params = {"shapeAddr"}, script = "var jsObj = new Bullet.btShapeHull(shapeAddr); return Bullet.getPointer(jsObj);")
private static native int createNative(int shapeAddr);
@Override
protected void deleteNative() {
deleteNative((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btShapeHull); Bullet.destroy(jsObj);")
private static native void deleteNative(int addr);
public btShapeHull(boolean cMemoryOwn) {
}
public btShapeHull() {
}
public int numTriangles() {
return numTrianglesNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btShapeHull);var returnedJSObj = jsObj.numTriangles();return returnedJSObj;")
private static native int numTrianglesNATIVE(int addr);
public int numVertices() {
return numVerticesNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btShapeHull);var returnedJSObj = jsObj.numVertices();return returnedJSObj;")
private static native int numVerticesNATIVE(int addr);
public int numIndices() {
return numIndicesNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btShapeHull);var returnedJSObj = jsObj.numIndices();return returnedJSObj;")
private static native int numIndicesNATIVE(int addr);
public boolean buildHull(float margin) {
return buildHullNATIVE((int) cPointer, margin);
}
@org.teavm.jso.JSBody(params = {"addr", "margin"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btShapeHull);var returnedJSObj = jsObj.buildHull(margin);return returnedJSObj;")
private static native boolean buildHullNATIVE(int addr, float margin);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy