#include <jni.h>
#include <stdlib.h>
#include <time.h>
#include <android/log.h>
#include <GLES3/gl3.h>
#include <GLES3/gl31.h>
#include <GLES2/gl2ext.h>
#include "geometry.cpp"
#include "loader.cpp"
#include <sys/time.h>
Go to the source code of this file.
|
const char * | get_gl_error_msg (GLenum code) |
|
void | gl_check_error () |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_init (JNIEnv *env, jobject obj) |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_resize (JNIEnv *env, jobject obj, jint width, jint height) |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_step (JNIEnv *env, jobject obj) |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_onpointerdown (JNIEnv *env, jobject obj, jfloat x, jfloat y) |
|
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_onpointerup (JNIEnv *env, jobject obj, jfloat x, jfloat y) |
|
#define BASE_ASSET_PATH "/data/data/com.arm.malideveloper.openglessdk.proceduralgeometry/files/" |
#define GL_GLEXT_PROTOTYPES |
#define LOG_TAG "ProceduralGeometry" |
#define LOGD |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) |
#define LOGE |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
#define LOGI |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
const char* get_gl_error_msg |
( |
GLenum |
code | ) |
|
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_init |
( |
JNIEnv * |
env, |
|
|
jobject |
obj |
|
) |
| |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_onpointerdown |
( |
JNIEnv * |
env, |
|
|
jobject |
obj, |
|
|
jfloat |
x, |
|
|
jfloat |
y |
|
) |
| |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_onpointerup |
( |
JNIEnv * |
env, |
|
|
jobject |
obj, |
|
|
jfloat |
x, |
|
|
jfloat |
y |
|
) |
| |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_resize |
( |
JNIEnv * |
env, |
|
|
jobject |
obj, |
|
|
jint |
width, |
|
|
jint |
height |
|
) |
| |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_proceduralgeometry_ProceduralGeometry_step |
( |
JNIEnv * |
env, |
|
|
jobject |
obj |
|
) |
| |