| 201 | } |
| 202 | |
| 203 | bool initMethod(JNIEnv *env, jclass cls, jmethodID& method, const char *name, const char *signature) |
| 204 | { |
| 205 | method = env->GetMethodID(cls, name, signature); |
| 206 | if (method == NULL) |
| 207 | { |
| 208 | std::cerr << "Failed to initialize method " << name << std::endl; |
| 209 | return false; |
| 210 | } |
| 211 | return true; |
| 212 | } |
| 213 | |
| 214 | |
| 215 | ktxTexture *get_ktx_texture(JNIEnv *env, jobject thiz) |