MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / initMethod

Function initMethod

interface/java_binding/src/main/cpp/libktx-jni.cpp:203–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203bool 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
215ktxTexture *get_ktx_texture(JNIEnv *env, jobject thiz)

Callers 1

JNI_OnLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected