![]() |
OpenGL ES SDK for Android
ARM Developer Center
|
A simple rotating cube. More...
#include <GLES2/gl2.h>#include <GLES2/gl2ext.h>#include <string>#include <jni.h>#include <android/log.h>#include "Cube.h"#include "AndroidPlatform.h"#include "Text.h"#include "Shader.h"#include "Texture.h"#include "Matrix.h"#include "Timer.h"Go to the source code of this file.
Functions | |
| bool | setupGraphics (int width, int height) |
| void | renderFrame (void) |
| JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_cube_Cube_init (JNIEnv *env, jclass jcls, jint width, jint height) |
| JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_cube_Cube_step (JNIEnv *env, jclass jcls) |
| JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_cube_Cube_uninit (JNIEnv *, jclass) |
Variables | |
| string | resourceDirectory = "/data/data/com.arm.malideveloper.openglessdk.cube/" |
| string | vertexShaderFilename = "Cube_cube.vert" |
| string | fragmentShaderFilename = "Cube_cube.frag" |
| GLuint | programID |
| GLint | iLocPosition |
| GLint | iLocColor |
| GLint | iLocMVP |
| int | windowWidth = -1 |
| int | windowHeight = -1 |
| Text * | text |
A simple rotating cube.
Definition in file Cube.cpp.
| JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_cube_Cube_init | ( | JNIEnv * | env, |
| jclass | jcls, | ||
| jint | width, | ||
| jint | height | ||
| ) |
| JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_cube_Cube_step | ( | JNIEnv * | env, |
| jclass | jcls | ||
| ) |
| JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_cube_Cube_uninit | ( | JNIEnv * | , |
| jclass | |||
| ) |
| string resourceDirectory = "/data/data/com.arm.malideveloper.openglessdk.cube/" |