|
Beatmup
|
Set of utility functions for Java bindings. More...
#include <java_factory.h>
Public Member Functions | |
| JavaFactory () | |
| jobject | makeAffineMapping (JNIEnv *jenv, const Beatmup::AffineMapping &mapping) |
| Creates Java's AffineMapping object from Beatmup AffineMapping. More... | |
| void | setAffineMapping (JNIEnv *jenv, const Beatmup::AffineMapping &mapping, jobject jMapping) |
| jobject | makeIntRectangle (JNIEnv *jenv, const Beatmup::IntRectangle) |
| Creates Java's IntRectangle object from Beatmup IntRectangle. More... | |
| jobject | makeIntPoint (JNIEnv *jenv, const Beatmup::IntPoint) |
| void | setIntPoint (JNIEnv *jenv, const Beatmup::IntPoint &point, jobject jPoint) |
| void | setIntPoint (JNIEnv *jenv, int x, int y, jobject jPoint) |
| jobject | makeColor (JNIEnv *jenv, const Beatmup::color4i &color) |
| Creates Java's Color object from Beatmup's color. More... | |
| void | setColor (JNIEnv *jenv, const Beatmup::color4i &c, jobject jColor) |
Private Member Functions | |
| void | initialize (JNIEnv *jenv) |
Private Attributes | |
| JNIEnv * | usedEnv |
| last used JNIEnv More... | |
| struct { | |
| jmethodID constructor | |
| jfieldID ida11 | |
| jfieldID ida12 | |
| jfieldID ida21 | |
| jfieldID ida22 | |
| jfieldID idx | |
| jfieldID idy | |
| } | affineMapping |
| struct { | |
| jmethodID constructor | |
| jfieldID ix1 | |
| jfieldID iy1 | |
| jfieldID ix2 | |
| jfieldID iy2 | |
| } | intRectangle |
| struct { | |
| jmethodID constructor | |
| jfieldID ix | |
| jfieldID iy | |
| } | intPoint |
| struct { | |
| jmethodID constructor | |
| jfieldID idr | |
| jfieldID idg | |
| jfieldID idb | |
| jfieldID ida | |
| } | color |
Set of utility functions for Java bindings.
Definition at line 27 of file java_factory.h.
| JavaFactory::JavaFactory | ( | ) |
Definition at line 22 of file java_factory.cpp.
|
private |
Definition at line 24 of file java_factory.cpp.
| jobject JavaFactory::makeAffineMapping | ( | JNIEnv * | jenv, |
| const Beatmup::AffineMapping & | mapping | ||
| ) |
Creates Java's AffineMapping object from Beatmup AffineMapping.
Definition at line 63 of file java_factory.cpp.
| void JavaFactory::setAffineMapping | ( | JNIEnv * | jenv, |
| const Beatmup::AffineMapping & | mapping, | ||
| jobject | jMapping | ||
| ) |
Definition at line 73 of file java_factory.cpp.
| jobject JavaFactory::makeIntRectangle | ( | JNIEnv * | jenv, |
| const Beatmup::IntRectangle | r | ||
| ) |
Creates Java's IntRectangle object from Beatmup IntRectangle.
Definition at line 85 of file java_factory.cpp.
| jobject JavaFactory::makeIntPoint | ( | JNIEnv * | jenv, |
| const Beatmup::IntPoint | p | ||
| ) |
Definition at line 94 of file java_factory.cpp.
| void JavaFactory::setIntPoint | ( | JNIEnv * | jenv, |
| const Beatmup::IntPoint & | point, | ||
| jobject | jPoint | ||
| ) |
Definition at line 103 of file java_factory.cpp.
| void JavaFactory::setIntPoint | ( | JNIEnv * | jenv, |
| int | x, | ||
| int | y, | ||
| jobject | jPoint | ||
| ) |
Definition at line 110 of file java_factory.cpp.
| jobject JavaFactory::makeColor | ( | JNIEnv * | jenv, |
| const Beatmup::color4i & | color | ||
| ) |
Creates Java's Color object from Beatmup's color.
Definition at line 117 of file java_factory.cpp.
| void JavaFactory::setColor | ( | JNIEnv * | jenv, |
| const Beatmup::color4i & | c, | ||
| jobject | jColor | ||
| ) |
Definition at line 126 of file java_factory.cpp.
|
private |
last used JNIEnv
Definition at line 29 of file java_factory.h.
| jmethodID JavaFactory::constructor |
Definition at line 32 of file java_factory.h.
| jfieldID JavaFactory::ida11 |
Definition at line 33 of file java_factory.h.
| jfieldID JavaFactory::ida12 |
Definition at line 33 of file java_factory.h.
| jfieldID JavaFactory::ida21 |
Definition at line 33 of file java_factory.h.
| jfieldID JavaFactory::ida22 |
Definition at line 33 of file java_factory.h.
| jfieldID JavaFactory::idx |
Definition at line 33 of file java_factory.h.
| jfieldID JavaFactory::idy |
Definition at line 33 of file java_factory.h.
| struct { ... } JavaFactory::affineMapping |
| jfieldID JavaFactory::ix1 |
Definition at line 38 of file java_factory.h.
| jfieldID JavaFactory::iy1 |
Definition at line 38 of file java_factory.h.
| jfieldID JavaFactory::ix2 |
Definition at line 38 of file java_factory.h.
| jfieldID JavaFactory::iy2 |
Definition at line 38 of file java_factory.h.
| struct { ... } JavaFactory::intRectangle |
| jfieldID JavaFactory::ix |
Definition at line 43 of file java_factory.h.
| jfieldID JavaFactory::iy |
Definition at line 43 of file java_factory.h.
| struct { ... } JavaFactory::intPoint |
| jfieldID JavaFactory::idr |
Definition at line 48 of file java_factory.h.
| jfieldID JavaFactory::idg |
Definition at line 48 of file java_factory.h.
| jfieldID JavaFactory::idb |
Definition at line 48 of file java_factory.h.
| jfieldID JavaFactory::ida |
Definition at line 48 of file java_factory.h.
| struct { ... } JavaFactory::color |