Example #1
0
JNIEXPORT void JNICALL Java_org_openscenegraph_osg_core_Vec3_nativeSetZ(JNIEnv *, jclass, jlong cptr,
		jfloat value)
{
	RefVec3 *v = reinterpret_cast<RefVec3 *>(cptr);
	if(v != 0)
	{
		v->z() = value;
	}
}
Example #2
0
JNIEXPORT float JNICALL Java_org_openscenegraph_osg_core_Vec3_nativeZ(JNIEnv *, jclass, jlong cptr)
{
	RefVec3 *v = reinterpret_cast<RefVec3 *>(cptr);
	if(v != 0)
	{
		return v->z();
	}
	return 0.0f;
}