OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Template.cpp File Reference

A blank sample to use as a basis for OpenGL ES 2.0 applications. More...

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <cstdio>
#include <cstdlib>
#include <jni.h>
#include <android/log.h>
#include "Template.h"
#include "Text.h"
#include "AndroidPlatform.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_template_Template_init (JNIEnv *env, jclass jcls, jint width, jint height)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_template_Template_step (JNIEnv *env, jclass jcls)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_template_Template_uninit (JNIEnv *, jclass)
 

Variables

string resourceDirectory = "/data/data/com.arm.malideveloper.openglessdk.template/"
 
Texttext
 

Detailed Description

A blank sample to use as a basis for OpenGL ES 2.0 applications.

This is a functioning OpenGL ES 2.0 application which renders nothing to the screen. Add setup code to setupGraphics(), for example, code to load shaders and textures. To use assets (shaders, textures, etc.), place them in the assets folder of the sample. Add code to actually render the scene in renderFrame().

Definition in file Template.cpp.

Function Documentation

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

Definition at line 80 of file Template.cpp.

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

Definition at line 86 of file Template.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_template_Template_uninit ( JNIEnv *  ,
jclass   
)

Definition at line 92 of file Template.cpp.

void renderFrame ( void  )

Definition at line 69 of file Template.cpp.

bool setupGraphics ( int  width,
int  height 
)

Definition at line 53 of file Template.cpp.

Variable Documentation

string resourceDirectory = "/data/data/com.arm.malideveloper.openglessdk.template/"

Definition at line 48 of file Template.cpp.

Text* text

Definition at line 51 of file Template.cpp.