24 |
* Written by Tuomas J. Lukka |
* Written by Tuomas J. Lukka |
25 |
*/ |
*/ |
26 |
|
|
27 |
|
#include <vob/jni/Types.hxx> |
28 |
#include <vob/jni/Strings.hxx> |
#include <vob/jni/Strings.hxx> |
29 |
#include <callgl.hxx> |
#include <callgl.hxx> |
30 |
|
|
43 |
|
|
44 |
|
|
45 |
GLenum tokenFromJstring(JNIEnv *env, jstring token) { |
GLenum tokenFromJstring(JNIEnv *env, jstring token) { |
46 |
|
DBG(JNI::dbg_convert) << "Converting jstring "<<env<<" "<<token<<"\n"; |
47 |
std::string str = jstr2stdstr(env, token); |
std::string str = jstr2stdstr(env, token); |
48 |
|
DBG(JNI::dbg_convert) << "Got std str "<<str<<"\n"; |
49 |
GLenum ret = CallGL::getTokenValue(str.c_str()); |
GLenum ret = CallGL::getTokenValue(str.c_str()); |
50 |
|
DBG(JNI::dbg_convert) << "Got val "<<ret<<"\n"; |
51 |
return ret; |
return ret; |
52 |
} |
} |
53 |
|
|