#include "common.hpp"
#include <stdlib.h>
#include <string>
#include <vector>
Go to the source code of this file.
|
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) |
|
static bool check_program |
( |
GLuint |
prog | ) |
|
|
static |
static GLuint common_compile |
( |
GLenum |
type, |
|
|
const char * |
source |
|
) |
| |
|
static |
GLuint common_compile_compute_shader |
( |
const char * |
cs_source | ) |
|
GLuint common_compile_compute_shader_from_file |
( |
const char * |
cs_source | ) |
|
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_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 |
|
) |
| |
FILE* common_fopen |
( |
const char * |
path, |
|
|
const char * |
mode |
|
) |
| |
string common_get_path |
( |
const char * |
basepath | ) |
|
bool common_read_file_string |
( |
const char * |
path, |
|
|
char ** |
out_buf |
|
) |
| |
void common_set_basedir |
( |
const char * |
basedir | ) |
|