VR SDK for Android 0.1.1 ARM Developer Center
main.cpp File Reference
#include <jni.h>
#include <stdlib.h>
#include <time.h>
#include <loader.h>

Go to the source code of this file.

Macros

#define BASE_ASSET_PATH   "/data/data/com.arm.developer.vrsdk.simplevr/files/"
 
#define SHADER_PATH(name)   BASE_ASSET_PATH name
 

Functions

const char * get_gl_error_msg (GLenum code)
 
void gl_check ()
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_vrsdk_armvr_ARMVR_init (JNIEnv *env, jobject obj)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_vrsdk_armvr_ARMVR_resize (JNIEnv *env, jobject obj, jint width, jint height)
 
JNIEXPORT void JNICALL Java_com_arm_malideveloper_vrsdk_armvr_ARMVR_step (JNIEnv *env, jobject obj)
 

Variables

static timeval start_time
 
static App app
 

Macro Definition Documentation

#define BASE_ASSET_PATH   "/data/data/com.arm.developer.vrsdk.simplevr/files/"

Definition at line 26 of file main.cpp.

#define SHADER_PATH (   name)    BASE_ASSET_PATH name

Definition at line 27 of file main.cpp.

Function Documentation

const char* get_gl_error_msg ( GLenum  code)

Definition at line 32 of file main.cpp.

void gl_check ( )

Definition at line 48 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_vrsdk_armvr_ARMVR_init ( JNIEnv *  env,
jobject  obj 
)

Definition at line 60 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_vrsdk_armvr_ARMVR_resize ( JNIEnv *  env,
jobject  obj,
jint  width,
jint  height 
)

Definition at line 72 of file main.cpp.

JNIEXPORT void JNICALL Java_com_arm_malideveloper_vrsdk_armvr_ARMVR_step ( JNIEnv *  env,
jobject  obj 
)

Definition at line 81 of file main.cpp.

Variable Documentation

App app
static

Definition at line 30 of file main.cpp.

timeval start_time
static

Definition at line 29 of file main.cpp.