mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
671 B
26 lines
671 B
#include <jni.h> |
|
|
|
int initGL(); |
|
void closeGL(); |
|
void changeSize(int width, int height); |
|
void drawFrame(); |
|
|
|
JNIEXPORT jint JNICALL Java_org_opencv_samples_tutorial4_NativeGLRenderer_initGL(JNIEnv * env, jclass cls) |
|
{ |
|
return initGL(); |
|
} |
|
|
|
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativeGLRenderer_closeGL(JNIEnv * env, jclass cls) |
|
{ |
|
closeGL(); |
|
} |
|
|
|
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativeGLRenderer_changeSize(JNIEnv * env, jclass cls, jint width, jint height) |
|
{ |
|
changeSize(width, height); |
|
} |
|
|
|
JNIEXPORT void JNICALL Java_org_opencv_samples_tutorial4_NativeGLRenderer_drawFrame(JNIEnv * env, jclass cls) |
|
{ |
|
drawFrame(); |
|
}
|
|
|