OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
occlusion.cpp File Reference
#include "common.hpp"
#include "scene.hpp"
#include <stdlib.h>
#include "Timer.h"
#include "Text.h"

Go to the source code of this file.

Macros

#define GLES_VERSION   3
 

Functions

static void render_text (Text &text, const char *method, float current_time)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_occlusionculling_OcclusionCulling_init (JNIEnv *env, jclass jcls, jint width, jint height)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_occlusionculling_OcclusionCulling_step (JNIEnv *env, jclass jcls)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_occlusionculling_OcclusionCulling_uninit (JNIEnv *, jclass)
 

Variables

int surface_width
 
int surface_height
 
Scenescene = NULL
 
Texttext = NULL
 
Timer timer
 
unsigned phase = 0
 
float culling_timer = 0.0f
 

Macro Definition Documentation

#define GLES_VERSION   3

Definition at line 26 of file occlusion.cpp.

Function Documentation

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

Definition at line 65 of file occlusion.cpp.

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

Definition at line 83 of file occlusion.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_occlusionculling_OcclusionCulling_uninit ( JNIEnv *  ,
jclass   
)

Definition at line 128 of file occlusion.cpp.

static void render_text ( Text text,
const char *  method,
float  current_time 
)
static

Definition at line 34 of file occlusion.cpp.

Variable Documentation

float culling_timer = 0.0f

Definition at line 60 of file occlusion.cpp.

unsigned phase = 0

Definition at line 59 of file occlusion.cpp.

Scene* scene = NULL

Definition at line 55 of file occlusion.cpp.

int surface_height

Definition at line 32 of file occlusion.cpp.

int surface_width

Definition at line 32 of file occlusion.cpp.

Text* text = NULL

Definition at line 56 of file occlusion.cpp.

Timer timer

Definition at line 58 of file occlusion.cpp.