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 "app.h"
#include <stdio.h>
#include <stdlib.h>
#include <jni.h>
#include <android/log.h>
#include "common.h"
#include "timer.h"

Go to the source code of this file.

Functions

const char * get_gl_error_msg (GLenum code)
 
void gl_check_error ()
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_init (JNIEnv *env, jclass jcls, jint width, jint height)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_step (JNIEnv *env, jclass jcls)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_uninit (JNIEnv *, jclass)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_onpointerdown (JNIEnv *env, jobject obj, jfloat x, jfloat y)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_onpointerup (JNIEnv *env, jobject obj, jfloat x, jfloat y)
 

Variables

double last_tick = 0.0
 

Function Documentation

const char* get_gl_error_msg ( GLenum  code)

Definition at line 33 of file main.cpp.

void gl_check_error ( )

Definition at line 49 of file main.cpp.

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

Definition at line 62 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_onpointerdown ( JNIEnv *  env,
jobject  obj,
jfloat  x,
jfloat  y 
)

Definition at line 88 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_onpointerup ( JNIEnv *  env,
jobject  obj,
jfloat  x,
jfloat  y 
)

Definition at line 94 of file main.cpp.

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

Definition at line 71 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_uninit ( JNIEnv *  ,
jclass   
)

Definition at line 82 of file main.cpp.

Variable Documentation

double last_tick = 0.0

Definition at line 31 of file main.cpp.