/** * Copyright 2010 Mario Zechner (contact@badlogicgames.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "Box2D.h" #include "FrictionJoint.h" /* * Class: com_badlogic_gdx_physics_box2d_joints_FrictionJoint * Method: jniSetMaxForce * Signature: (JF)V */ JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_FrictionJoint_jniSetMaxForce (JNIEnv *, jobject, jlong addr, jfloat maxForce) { b2FrictionJoint* joint = (b2FrictionJoint*)addr; joint->SetMaxForce( maxForce ); } /* * Class: com_badlogic_gdx_physics_box2d_joints_FrictionJoint * Method: jniGetMaxForce * Signature: (J)F */ JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_FrictionJoint_jniGetMaxForce (JNIEnv *, jobject, jlong addr) { b2FrictionJoint* joint = (b2FrictionJoint*)addr; return joint->GetMaxForce(); } /* * Class: com_badlogic_gdx_physics_box2d_joints_FrictionJoint * Method: jniSetMaxTorque * Signature: (JF)V */ JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_joints_FrictionJoint_jniSetMaxTorque (JNIEnv *, jobject, jlong addr, jfloat torque) { b2FrictionJoint* joint = (b2FrictionJoint*)addr; joint->SetMaxTorque( torque ); } /* * Class: com_badlogic_gdx_physics_box2d_joints_FrictionJoint * Method: jniGetMaxTorque * Signature: (J)F */ JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_joints_FrictionJoint_jniGetMaxTorque (JNIEnv *, jobject, jlong addr) { b2FrictionJoint* joint = (b2FrictionJoint*)addr; return joint->GetMaxTorque(); }