MCPcopy Create free account
hub / github.com/defold/defold / Java_TexcLibraryJni_PreMultiplyAlpha

Function Java_TexcLibraryJni_PreMultiplyAlpha

engine/texc/src/texclibrary_jni.cpp:143–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143JNIEXPORT jboolean JNICALL Java_TexcLibraryJni_PreMultiplyAlpha(JNIEnv* env, jclass cls, jlong _image)
144{
145 jboolean result = 0;
146 DM_JNI_GUARD_SCOPE_BEGIN();
147 dmTexc::Image* image = (dmTexc::Image*)_image;
148 if (image)
149 {
150 result = dmTexc::PreMultiplyAlpha(image);
151 }
152 DM_JNI_GUARD_SCOPE_END(return 0;);
153 return result;
154}
155
156JNIEXPORT jboolean JNICALL Java_TexcLibraryJni_Flip(JNIEnv* env, jclass cls, jlong _image, jint flip_axis)
157{

Callers

nothing calls this directly

Calls 1

PreMultiplyAlphaFunction · 0.70

Tested by

no test coverage detected