gl-utils.h File Reference

Include dependency graph for gl-utils.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define BUFFER_OFFSET ( bytes   )     ((GLubyte*) NULL + (bytes))
#define GLEW_STATIC   1
 
#define PRINT_OPENGL_ERROR (  )     print_opengl_error(__FILE__, __LINE__)

Function Documentation

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 
)
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().

Here is the call graph for this function:

Generated on Tue Dec 28 10:12:07 2010 by  doxygen 1.6.3