Skip to content

Commit a62e910

Browse files
committed
bugfix: unimplemented CharacterVirtual.getTransformedShape()
1 parent af67be9 commit a62e910

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/native/glue/ch/CharacterVirtual.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,21 @@ JNIEXPORT jfloat JNICALL Java_com_github_stephengold_joltjni_CharacterVirtual_ge
520520
return result;
521521
}
522522

523+
/*
524+
* Class: com_github_stephengold_joltjni_CharacterVirtual
525+
* Method: getTransformedShape
526+
* Signature: (J)J
527+
*/
528+
JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_CharacterVirtual_getTransformedShape
529+
(JNIEnv *, jclass, jlong characterVa) {
530+
const CharacterVirtual * const pCharacter
531+
= reinterpret_cast<CharacterVirtual *> (characterVa);
532+
const TransformedShape & shape = pCharacter->GetTransformedShape();
533+
TransformedShape * const pResult = new TransformedShape(shape);
534+
TRACE_NEW("TransformedShape", pResult)
535+
return reinterpret_cast<jlong> (pResult);
536+
}
537+
523538
/*
524539
* Class: com_github_stephengold_joltjni_CharacterVirtual
525540
* Method: getUserData

0 commit comments

Comments
 (0)