VR SDK for Android 0.1.1 ARM Developer Center
loader.cpp File Reference
#include <stdio.h>
#include <stdlib.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

char * read_file (const char *filename)
 
GLuint compile_shader (const char *source, GLenum type)
 
GLuint link_program (GLuint *shaders, int count)
 
void load_cube_shader (App *app)
 
void load_distort_shader (App *app)
 
void load_assets (App *app)
 

Macro Definition Documentation

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

Definition at line 26 of file loader.cpp.

#define SHADER_PATH (   name)    BASE_ASSET_PATH name

Definition at line 27 of file loader.cpp.

Function Documentation

GLuint compile_shader ( const char *  source,
GLenum  type 
)

Definition at line 56 of file loader.cpp.

GLuint link_program ( GLuint shaders,
int  count 
)

Definition at line 74 of file loader.cpp.

void load_assets ( App app)

Definition at line 117 of file loader.cpp.

void load_cube_shader ( App app)

Definition at line 95 of file loader.cpp.

void load_distort_shader ( App app)

Definition at line 106 of file loader.cpp.

char* read_file ( const char *  filename)

Definition at line 29 of file loader.cpp.