Defines | |
#define | GLEW_STATIC 1 |
Functions | |
bool | print_opengl_error (const char *file, int line) |
void | check_framebuffer_status (void) |
void | get_gl_version (int *major, int *minor) |
static void | print_shader_info_log (GLuint shader) |
static void | print_program_info_log (GLuint program) |
GLint | get_uni_loc (GLuint program, const GLchar *name) |
static std::string | get_file_content (const std::string &filename) |
GLuint | read_shader (const std::string &vertex_filename, const std::string &fragment_filename) |
#define GLEW_STATIC 1 |
void check_framebuffer_status | ( | void | ) |
References PRINT_OPENGL_ERROR.
static std::string get_file_content | ( | const std::string & | filename | ) | [static] |
Referenced by read_shader().
void get_gl_version | ( | int * | major, | |
int * | minor | |||
) |
References PRINT_OPENGL_ERROR.
GLint get_uni_loc | ( | GLuint | program, | |
const GLchar * | name | |||
) |
References PRINT_OPENGL_ERROR.
Referenced by AnimatedMesh::draw(), and AnimatedMesh::setup_shader().
bool print_opengl_error | ( | const char * | file, | |
int | line | |||
) |
static void print_program_info_log | ( | GLuint | program | ) | [static] |
References PRINT_OPENGL_ERROR.
Referenced by read_shader().
static void print_shader_info_log | ( | GLuint | shader | ) | [static] |
References PRINT_OPENGL_ERROR.
Referenced by read_shader().
GLuint read_shader | ( | const std::string & | vertex_filename, | |
const std::string & | fragment_filename | |||
) |
References get_file_content(), PRINT_OPENGL_ERROR, print_program_info_log(), and print_shader_info_log().
Referenced by AnimatedMesh::setup_shader().