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 "ClipmapApplication.h"
#include "EGLRuntime.h"
#include "Platform.h"
#include <stdio.h>
#include <stdlib.h>
#include <jni.h>
#include <android/log.h>

Go to the source code of this file.

Macros

#define CLIPMAP_SIZE   64
 
#define CLIPMAP_LEVELS   10
 
#define CLIPMAP_SCALE   0.25f
 

Functions

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_terrain_Terrain_init (JNIEnv *env, jclass jcls, jint width, jint height)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_terrain_Terrain_step (JNIEnv *env, jclass jcls)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_terrain_Terrain_uninit (JNIEnv *, jclass)
 

Variables

ClipmapApplicationapp = NULL
 
int surface_width
 
int surface_height
 

Macro Definition Documentation

#define CLIPMAP_LEVELS   10

Definition at line 42 of file main.cpp.

#define CLIPMAP_SCALE   0.25f

Definition at line 45 of file main.cpp.

#define CLIPMAP_SIZE   64

Definition at line 39 of file main.cpp.

Function Documentation

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

Definition at line 53 of file main.cpp.

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

Definition at line 62 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_terrain_Terrain_uninit ( JNIEnv *  ,
jclass   
)

Definition at line 68 of file main.cpp.

Variable Documentation

ClipmapApplication* app = NULL

Definition at line 47 of file main.cpp.

int surface_height

Definition at line 48 of file main.cpp.

int surface_width

Definition at line 48 of file main.cpp.