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

com.badlogic.gdx.physics.bullet.collision.btDispatcher 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;

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