Skip to content

Commit

Permalink
glue: LICENSE, comments, and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 14, 2024
1 parent 33897a9 commit 285084e
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 16 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The src/main/java/com/jme3 and src/main/native/glue software
are Copyright (c) 2009-2023 jMonkeyEngine
are Copyright (c) 2009-2024 jMonkeyEngine
All rights reserved.

The src/main/native/v-hacd software except vhacdMutex.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionObject_ini
pUser->m_groups = groups;
pUser->m_jmeSpace = NULL;
pUser->m_javaRef = pEnv->NewWeakGlobalRef(object); //dance041
// no check for exceptions!
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ ATTRIBUTE_ALIGNED16(class)
HeightfieldShape : public btHeightfieldTerrainShape {
public:
BT_DECLARE_ALIGNED_ALLOCATOR();

/*
* constructor:
*/
HeightfieldShape(int heightStickWidth, int heightStickLength,
const void *pHeightfieldData, btScalar heightScale,
btScalar minHeight, btScalar maxHeight, int upAxis,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class jmeGhostOverlapCallback : public btOverlapCallback {
jobject m_object;
btCollisionObject * m_ghost;
public:

/*
* constructor:
*/
jmeGhostOverlapCallback(JNIEnv *pEnv, jobject object,
btCollisionObject *pGhost)
: m_env(pEnv),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2023 jMonkeyEngine
* Copyright (c) 2009-2024 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -47,12 +47,14 @@
*/
ATTRIBUTE_ALIGNED16(class)
jmeKcc : public btKinematicCharacterController {
public:
public:
BT_DECLARE_ALIGNED_ALLOCATOR();

/*
* constructor:
*/
jmeKcc(btPairCachingGhostObject *ghost, btConvexShape *shape,
btScalar stepHeight)
: btKinematicCharacterController(ghost, shape, stepHeight) {
: btKinematicCharacterController(ghost, shape, stepHeight) {
}

const btVector3 & getWalkOffset() const {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2021 jMonkeyEngine
* Copyright (c) 2009-2024 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -139,7 +139,7 @@ JNIEXPORT jlong JNICALL Java_com_jme3_bullet_objects_infos_VehicleController_cre
pBody->setActivationState(DISABLE_DEACTIVATION);

btVehicleRaycaster * const
pCaster = new btDefaultVehicleRaycaster(pWorld); //dance033 TODO leak
pCaster = new btDefaultVehicleRaycaster(pWorld); // TODO leak
btRaycastVehicle * const
pController = new btRaycastVehicle(*pTuning, pBody, pCaster); //dance032

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class DebugCallback : public btTriangleCallback, public btInternalTriangleIndexC
public:
JNIEnv *pEnv;
jobject callback;

/*
* constructor:
*/
DebugCallback(JNIEnv *pEnv, jobject object) {
this->pEnv = pEnv;
this->callback = object;
Expand Down
4 changes: 3 additions & 1 deletion src/main/native/glue/jmePhysicsSoftSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
*/
class jmePhysicsSoftSpace : public jmePhysicsSpace {
public:

/*
* constructor:
*/
jmePhysicsSoftSpace(JNIEnv *env, jobject javaSpace)
: jmePhysicsSpace(env, javaSpace) {
}
Expand Down
1 change: 0 additions & 1 deletion src/main/native/glue/jmePhysicsSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class jmePhysicsSpace : public jmeCollisionSpace {
modify();

public:

/*
* constructor:
*/
Expand Down
6 changes: 4 additions & 2 deletions src/main/native/glue/vhacd4_Vhacd4.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2023 jMonkeyEngine
* Copyright (c) 2020-2024 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -55,7 +55,9 @@ using namespace VHACD;
class Callback4 : public IVHACD::IUserCallback {
public:
JNIEnv *pEnv;

/*
* constructor:
*/
Callback4(JNIEnv *pJNIEnv) {
pEnv = pJNIEnv;
}
Expand Down
6 changes: 4 additions & 2 deletions src/main/native/glue/vhacd_VHACD.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2023 jMonkeyEngine
* Copyright (c) 2020-2024 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -45,7 +45,9 @@ using namespace VHACD;
class Callback : public IVHACD::IUserCallback {
public:
JNIEnv *pEnv;

/*
* constructor:
*/
Callback(JNIEnv *pJNIEnv) {
pEnv = pJNIEnv;
}
Expand Down

0 comments on commit 285084e

Please sign in to comment.