30 |
#include <vob/Types.hxx> |
#include <vob/Types.hxx> |
31 |
#include <vob/util/ObjectStorer.hxx> |
#include <vob/util/ObjectStorer.hxx> |
32 |
#include <vob/os/Os.hxx> |
#include <vob/os/Os.hxx> |
33 |
|
#include <vob/Debug.hxx> |
34 |
|
|
35 |
#include <vob/jni/Strings.hxx> |
#include <vob/jni/Strings.hxx> |
36 |
|
|
37 |
|
|
38 |
namespace Vob { |
namespace Vob { |
39 |
namespace JNI { |
namespace JNI { |
40 |
|
PREDBGVAR(dbg_convert); |
41 |
|
|
42 |
/** The JNI parameter template class. |
/** The JNI parameter template class. |
43 |
* |
* |
129 |
VOB_JNI_CONVERSION_ASSIGN(int, "int", jint) |
VOB_JNI_CONVERSION_ASSIGN(int, "int", jint) |
130 |
|
|
131 |
START_VOB_JNI_CONVERSION(Token, "String", jstring) |
START_VOB_JNI_CONVERSION(Token, "String", jstring) |
132 |
|
DBG(dbg_convert) << "Converting token "<<in<<"\n"; |
133 |
out = tokenFromJstring(env, in); |
out = tokenFromJstring(env, in); |
134 |
|
DBG(dbg_convert) << "Converted token "<<out<<"\n"; |
135 |
END_VOB_JNI_CONVERSION |
END_VOB_JNI_CONVERSION |
136 |
|
|
137 |
|
|
138 |
START_VOB_JNI_CONVERSION_IDDED(GLubyte *, "GL.ByteVector") |
START_VOB_JNI_CONVERSION_IDDED(GLubyte *, "GL.ByteVector") |
139 |
|
DBG(dbg_convert) << "Converting bytevec "<<in<<"\n"; |
140 |
ByteVector *bv = bytevectors[in]; |
ByteVector *bv = bytevectors[in]; |
141 |
|
DBG(dbg_convert) << "Got bytevec "<<bv<<"\n"; |
142 |
out = &((*bv)[0]); |
out = &((*bv)[0]); |
143 |
|
DBG(dbg_convert) << "Got ptr "<<(int)out<<"\n"; |
144 |
END_VOB_JNI_CONVERSION |
END_VOB_JNI_CONVERSION |
145 |
|
|
146 |
START_VOB_JNI_CONVERSION_IDDED(DisplayListID, "GL.DisplayList") |
START_VOB_JNI_CONVERSION_IDDED(DisplayListID, "GL.DisplayList") |