OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Native.cpp File Reference
#include <jni.h>
#include <android/log.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define LOG_TAG   "libNative"
 
#define LOGI(...)   __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
 
#define LOGE(...)   __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
 

Functions

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_fileloading_NativeLibrary_init (JNIEnv *env, jobject obj, jstring privateFile, jstring publicFile, jstring cacheFile)
 
void readFile (const char *fileName, int size)
 

Variables

static int PRIVATE_FILE_SIZE = 82
 
static int PUBLIC_FILE_SIZE = 105
 
static int CACHE_FILE_SIZE = 146
 

Macro Definition Documentation

#define LOG_TAG   "libNative"

Definition at line 26 of file Native.cpp.

#define LOGE (   ...)    __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)

Definition at line 28 of file Native.cpp.

#define LOGI (   ...)    __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)

Definition at line 27 of file Native.cpp.

Function Documentation

JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_fileloading_NativeLibrary_init ( JNIEnv *  env,
jobject  obj,
jstring  privateFile,
jstring  publicFile,
jstring  cacheFile 
)

Definition at line 61 of file Native.cpp.

void readFile ( const char *  fileName,
int  size 
)

Definition at line 43 of file Native.cpp.

Variable Documentation

int CACHE_FILE_SIZE = 146
static

Definition at line 32 of file Native.cpp.

int PRIVATE_FILE_SIZE = 82
static

Definition at line 30 of file Native.cpp.

int PUBLIC_FILE_SIZE = 105
static

Definition at line 31 of file Native.cpp.