29 jclass cls =
jenv->FindClass(
"Beatmup/Geometry/AffineMapping");
37 jenv->DeleteLocalRef(cls);
39 cls =
jenv->FindClass(
"Beatmup/Geometry/IntRectangle");
45 jenv->DeleteLocalRef(cls);
47 cls =
jenv->FindClass(
"Beatmup/Geometry/IntPoint");
48 intPoint.constructor =
jenv->GetMethodID(cls,
"<init>",
"(II)V");
51 jenv->DeleteLocalRef(cls);
53 cls =
jenv->FindClass(
"Beatmup/Imaging/Color");
54 color.constructor =
jenv->GetMethodID(cls,
"<init>",
"(IIII)V");
55 color.idr =
jenv->GetFieldID(cls,
"r",
"I");
56 color.idg =
jenv->GetFieldID(cls,
"g",
"I");
57 color.idb =
jenv->GetFieldID(cls,
"b",
"I");
58 color.ida =
jenv->GetFieldID(cls,
"a",
"I");
59 jenv->DeleteLocalRef(cls);
65 jclass cls =
jenv->FindClass(
"Beatmup/Geometry/AffineMapping");
67 jenv->DeleteLocalRef(cls);
87 jclass cls =
jenv->FindClass(
"Beatmup/Geometry/IntRectangle");
89 jenv->DeleteLocalRef(cls);
96 jclass cls =
jenv->FindClass(
"Beatmup/Geometry/IntPoint");
98 jenv->DeleteLocalRef(cls);
119 jclass cls =
jenv->FindClass(
"Beatmup/Imaging/Color");
121 jenv->DeleteLocalRef(cls);
2x3 affine mapping containing a 2x2 matrix and a 2D point
void getElements(float &a11, float &a12, float &a21, float &a22) const
Retrieves matrix element values.
struct JavaFactory::@19 color
void setIntPoint(JNIEnv *jenv, const Beatmup::IntPoint &point, jobject jPoint)
jobject makeIntRectangle(JNIEnv *jenv, const Beatmup::IntRectangle)
Creates Java's IntRectangle object from Beatmup IntRectangle.
void setAffineMapping(JNIEnv *jenv, const Beatmup::AffineMapping &mapping, jobject jMapping)
JNIEnv * usedEnv
last used JNIEnv
void setColor(JNIEnv *jenv, const Beatmup::color4i &c, jobject jColor)
struct JavaFactory::@16 affineMapping
jobject makeAffineMapping(JNIEnv *jenv, const Beatmup::AffineMapping &mapping)
Creates Java's AffineMapping object from Beatmup AffineMapping.
jobject makeIntPoint(JNIEnv *jenv, const Beatmup::IntPoint)
struct JavaFactory::@17 intRectangle
void initialize(JNIEnv *jenv)
struct JavaFactory::@18 intPoint
jobject makeColor(JNIEnv *jenv, const Beatmup::color4i &color)
Creates Java's Color object from Beatmup's color.
jobject jlong jint jint y
jobject jlong jint jint jint r
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat a11
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat jfloat jfloat jfloat a22
Beatmup::IntPoint p((int) x,(int) y)
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat jfloat jfloat a21
Beatmup::AffineMapping & mapping
return layer isPhantom() ? JNI_TRUE jlong jfloat jfloat jfloat jfloat a12