OpenGL ES SDK for Android
ARM Developer Center
|
#include <stdio.h>
#include <stdlib.h>
#include <GLES3/gl3.h>
#include <GLES2/gl2ext.h>
#include "tessellation.cpp"
#include <jni.h>
#include <android/log.h>
#include <sys/time.h>
#include "EGLRuntime.h"
#include "Platform.h"
#include "loader.cpp"
Go to the source code of this file.
Macros | |
#define | GL_GLEXT_PROTOTYPES |
#define | GL_PATCHES GL_PATCHES_EXT |
#define | GL_PATCH_VERTICES GL_PATCH_VERTICES_EXT |
#define | GL_TESS_CONTROL_SHADER GL_TESS_CONTROL_SHADER_EXT |
#define | GL_TESS_EVALUATION_SHADER GL_TESS_EVALUATION_SHADER_EXT |
#define | glPatchParameteri glPatchParameteriEXT |
#define | BASE_ASSET_PATH "/data/data/com.arm.malideveloper.openglessdk.tessellation/files/" |
#define | HEIGHTMAP_PATH(name) BASE_ASSET_PATH name "_heightmap.png" |
#define | DIFFUSEMAP_PATH(name) BASE_ASSET_PATH name "_diffusemap.png" |
#define | SHADER_PATH(name) BASE_ASSET_PATH name |
Functions | |
const char * | get_gl_error_msg (GLenum code) |
void | gl_check_error () |
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_init (JNIEnv *env, jclass jcls) |
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_resize (JNIEnv *env, jclass jcls, jint width, jint height) |
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_step (JNIEnv *env, jclass jcls) |
Variables | |
static timeval | start_time |
static App | app |
#define BASE_ASSET_PATH "/data/data/com.arm.malideveloper.openglessdk.tessellation/files/" |
#define DIFFUSEMAP_PATH | ( | name | ) | BASE_ASSET_PATH name "_diffusemap.png" |
#define GL_PATCH_VERTICES GL_PATCH_VERTICES_EXT |
#define GL_PATCHES GL_PATCHES_EXT |
#define GL_TESS_CONTROL_SHADER GL_TESS_CONTROL_SHADER_EXT |
#define GL_TESS_EVALUATION_SHADER GL_TESS_EVALUATION_SHADER_EXT |
#define HEIGHTMAP_PATH | ( | name | ) | BASE_ASSET_PATH name "_heightmap.png" |
#define SHADER_PATH | ( | name | ) | BASE_ASSET_PATH name |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_init | ( | JNIEnv * | env, |
jclass | jcls | ||
) |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_resize | ( | JNIEnv * | env, |
jclass | jcls, | ||
jint | width, | ||
jint | height | ||
) |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_step | ( | JNIEnv * | env, |
jclass | jcls | ||
) |