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