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

Go to the source code of this file.

Functions

static GLuint common_compile (GLenum type, const char *source)
 
static bool check_program (GLuint prog)
 
GLuint common_compile_shader (const char *vs_source, const char *fs_source)
 
GLuint common_compile_compute_shader (const char *cs_source)
 
static bool read_file_string (const char *path, char **out_buf)
 
GLuint common_compile_shader_from_file (const char *vs_source, const char *fs_source)
 
GLuint common_compile_compute_shader_from_file (const char *cs_source)
 
void common_set_basedir (const char *basedir)
 
string common_get_path (const char *basepath)
 
FILE * common_fopen (const char *path, const char *mode)
 

Variables

static string common_basedir
 

Function Documentation

static bool check_program ( GLuint  prog)
static

Definition at line 53 of file common.cpp.

static GLuint common_compile ( GLenum  type,
const char *  source 
)
static

Definition at line 28 of file common.cpp.

GLuint common_compile_compute_shader ( const char *  cs_source)

Definition at line 108 of file common.cpp.

GLuint common_compile_compute_shader_from_file ( const char *  cs_source)

Definition at line 191 of file common.cpp.

GLuint common_compile_shader ( const char *  vs_source,
const char *  fs_source 
)

Definition at line 74 of file common.cpp.

GLuint common_compile_shader_from_file ( const char *  vs_source,
const char *  fs_source 
)

Definition at line 169 of file common.cpp.

FILE* common_fopen ( const char *  path,
const char *  mode 
)

Definition at line 223 of file common.cpp.

string common_get_path ( const char *  basepath)

Definition at line 211 of file common.cpp.

void common_set_basedir ( const char *  basedir)

Definition at line 206 of file common.cpp.

static bool read_file_string ( const char *  path,
char **  out_buf 
)
static

Definition at line 132 of file common.cpp.

Variable Documentation

string common_basedir
static

Definition at line 205 of file common.cpp.