OpenGL ES SDK for Android
ARM Developer Center
|
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <string>
#include <jni.h>
#include <android/log.h>
#include "RotoZoom.h"
#include "Timer.h"
#include "Text.h"
#include "Texture.h"
#include "Shader.h"
#include "Matrix.h"
#include "Platform.h"
#include "Mathematics.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_rotozoom_RotoZoom_init (JNIEnv *env, jclass jcls, jint width, jint height) |
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_rotozoom_RotoZoom_step (JNIEnv *env, jclass jcls) |
JNIEXPORT void JNICALL | Java_com_arm_malideveloper_openglessdk_rotozoom_RotoZoom_uninit (JNIEnv *, jclass) |
Variables | |
string | resourceDirectory = "/data/data/com.arm.malideveloper.openglessdk.rotozoom/" |
string | textureFilename = "RotoZoom.raw" |
string | vertexShaderFilename = "RotoZoom_cube.vert" |
string | fragmentShaderFilename = "RotoZoom_cube.frag" |
GLuint | textureID = 0 |
GLuint | programID = 0 |
GLint | iLocTextureMatrix = -1 |
GLint | iLocPosition = -1 |
GLint | iLocTextureMix = -1 |
GLint | iLocTexture = -1 |
GLint | iLocTexCoord = -1 |
Matrix | translation |
Matrix | scale |
Matrix | negativeTranslation |
int | windowWidth = -1 |
int | windowHeight = -1 |
Text * | text |
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_rotozoom_RotoZoom_init | ( | JNIEnv * | env, |
jclass | jcls, | ||
jint | width, | ||
jint | height | ||
) |
Definition at line 257 of file RotoZoom.cpp.
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_rotozoom_RotoZoom_step | ( | JNIEnv * | env, |
jclass | jcls | ||
) |
Definition at line 268 of file RotoZoom.cpp.
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_rotozoom_RotoZoom_uninit | ( | JNIEnv * | , |
jclass | |||
) |
Definition at line 274 of file RotoZoom.cpp.
Definition at line 178 of file RotoZoom.cpp.
Definition at line 73 of file RotoZoom.cpp.
string fragmentShaderFilename = "RotoZoom_cube.frag" |
Definition at line 49 of file RotoZoom.cpp.
GLint iLocPosition = -1 |
Definition at line 57 of file RotoZoom.cpp.
GLint iLocTexCoord = -1 |
Definition at line 60 of file RotoZoom.cpp.
GLint iLocTexture = -1 |
Definition at line 59 of file RotoZoom.cpp.
GLint iLocTextureMatrix = -1 |
Definition at line 56 of file RotoZoom.cpp.
GLint iLocTextureMix = -1 |
Definition at line 58 of file RotoZoom.cpp.
Matrix negativeTranslation |
Definition at line 65 of file RotoZoom.cpp.
GLuint programID = 0 |
Definition at line 55 of file RotoZoom.cpp.
string resourceDirectory = "/data/data/com.arm.malideveloper.openglessdk.rotozoom/" |
Definition at line 46 of file RotoZoom.cpp.
Matrix scale |
Definition at line 64 of file RotoZoom.cpp.
Text* text |
Definition at line 71 of file RotoZoom.cpp.
string textureFilename = "RotoZoom.raw" |
Definition at line 47 of file RotoZoom.cpp.
GLuint textureID = 0 |
Definition at line 52 of file RotoZoom.cpp.
Matrix translation |
Definition at line 63 of file RotoZoom.cpp.
string vertexShaderFilename = "RotoZoom_cube.vert" |
Definition at line 48 of file RotoZoom.cpp.
int windowHeight = -1 |
Definition at line 68 of file RotoZoom.cpp.
int windowWidth = -1 |
Definition at line 67 of file RotoZoom.cpp.