#include <jni.h>
#include "include/core/SkShader.h"
Go to the source code of this file.
◆ register_jetski_Shader()
int register_jetski_Shader |
( |
JNIEnv * |
env | ) |
|
Definition at line 19 of file Shader.cpp.
19 {
20 static const JNINativeMethod methods[] = {
21 {"nRelease" , "(J)V" , reinterpret_cast<void*>(Shader_Release)},
22 };
23
24 const auto clazz =
env->FindClass(
"org/skia/jetski/Shader");
25 return clazz
26 ?
env->RegisterNatives(clazz, methods, std::size(methods))
27 : JNI_ERR;
28}