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_shader (const char *vs_source, const char *tc_source, const char *te_source, const char *geom_source, const char *fs_source)
 
GLuint common_compile_compute_shader (const char *cs_source)
 
bool common_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_shader_from_file (const char *vs_source, const char *tc_source, const char *te_source, const char *geom_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 180 of file common.cpp.

GLuint common_compile_compute_shader_from_file ( const char *  cs_source)

Definition at line 317 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 ( const char *  vs_source,
const char *  tc_source,
const char *  te_source,
const char *  geom_source,
const char *  fs_source 
)

Definition at line 108 of file common.cpp.

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

Definition at line 241 of file common.cpp.

GLuint common_compile_shader_from_file ( const char *  vs_source,
const char *  tc_source,
const char *  te_source,
const char *  geom_source,
const char *  fs_source 
)

Definition at line 263 of file common.cpp.

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

Definition at line 349 of file common.cpp.

string common_get_path ( const char *  basepath)

Definition at line 337 of file common.cpp.

bool common_read_file_string ( const char *  path,
char **  out_buf 
)

Definition at line 204 of file common.cpp.

void common_set_basedir ( const char *  basedir)

Definition at line 332 of file common.cpp.

Variable Documentation

string common_basedir
static

Definition at line 331 of file common.cpp.