Go to the source code of this file.
Defines | |
#define | GLEW_STATIC 1 |
#define | BUFFER_OFFSET(bytes) ((GLubyte*) NULL + (bytes)) |
#define | PRINT_OPENGL_ERROR() print_opengl_error(__FILE__, __LINE__) |
Functions | |
bool | print_opengl_error (const char *file, int line) |
void | check_framebuffer_status (void) |
void | get_gl_version (int *major, int *minor) |
GLint | get_uni_loc (GLuint program, const GLchar *name) |
GLuint | read_shader (const std::string &vertex_filename, const std::string &fragment_filename) |
#define BUFFER_OFFSET | ( | bytes | ) | ((GLubyte*) NULL + (bytes)) |
Referenced by AnimatedMesh::setup_shader().
#define GLEW_STATIC 1 |
#define PRINT_OPENGL_ERROR | ( | ) | print_opengl_error(__FILE__, __LINE__) |
Referenced by check_framebuffer_status(), get_gl_version(), get_uni_loc(), print_program_info_log(), print_shader_info_log(), and read_shader().
void check_framebuffer_status | ( | void | ) |
References PRINT_OPENGL_ERROR.
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 | |||
) |
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().