All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.badlogic.gdx.physics.bullet.collision.btOverlappingPairCache Maven / Gradle / Ivy

There is a newer version: 1.0.0-b6
Show newest version
/*-------------------------------------------------------
 * 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