OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
main.cpp File Reference
#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
 

Macro Definition Documentation

#define BASE_ASSET_PATH   "/data/data/com.arm.malideveloper.openglessdk.tessellation/files/"

Definition at line 48 of file main.cpp.

#define DIFFUSEMAP_PATH (   name)    BASE_ASSET_PATH name "_diffusemap.png"

Definition at line 50 of file main.cpp.

#define GL_GLEXT_PROTOTYPES

Definition at line 31 of file main.cpp.

#define GL_PATCH_VERTICES   GL_PATCH_VERTICES_EXT

Definition at line 34 of file main.cpp.

#define GL_PATCHES   GL_PATCHES_EXT

Definition at line 33 of file main.cpp.

#define GL_TESS_CONTROL_SHADER   GL_TESS_CONTROL_SHADER_EXT

Definition at line 35 of file main.cpp.

#define GL_TESS_EVALUATION_SHADER   GL_TESS_EVALUATION_SHADER_EXT

Definition at line 36 of file main.cpp.

#define glPatchParameteri   glPatchParameteriEXT

Definition at line 37 of file main.cpp.

#define HEIGHTMAP_PATH (   name)    BASE_ASSET_PATH name "_heightmap.png"

Definition at line 49 of file main.cpp.

#define SHADER_PATH (   name)    BASE_ASSET_PATH name

Definition at line 51 of file main.cpp.

Function Documentation

const char* get_gl_error_msg ( GLenum  code)

Definition at line 57 of file main.cpp.

void gl_check_error ( )

Definition at line 73 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_init ( JNIEnv *  env,
jclass  jcls 
)

Definition at line 86 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_resize ( JNIEnv *  env,
jclass  jcls,
jint  width,
jint  height 
)

Definition at line 99 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_tessellation_NativeLibrary_step ( JNIEnv *  env,
jclass  jcls 
)

Definition at line 108 of file main.cpp.

Variable Documentation

App app
static

Definition at line 55 of file main.cpp.

timeval start_time
static

Definition at line 54 of file main.cpp.