gl-utils.h

Go to the documentation of this file.
00001 // gl-utils.h
00002 
00003 #ifndef GL_UTILS_H
00004 #define GL_UTILS_H
00005 
00006 #include <vector>
00007 #include <string>
00008 
00009 #define GLEW_STATIC 1
00010 #include <GL/glew.h>
00011 #include <GL/gl.h>
00012 
00013 #define BUFFER_OFFSET(bytes) ((GLubyte*) NULL + (bytes))
00014 #define PRINT_OPENGL_ERROR() print_opengl_error(__FILE__, __LINE__)
00015 
00016 bool print_opengl_error (const char *file, int line);
00017 
00018 void check_framebuffer_status (void);
00019 
00020 void get_gl_version (int *major, int *minor);
00021 
00022 GLint get_uni_loc (GLuint program, const GLchar *name);
00023 
00024 GLuint read_shader (const std::string &vertex_filename,
00025                     const std::string &fragment_filename);
00026 
00027 #endif
Generated on Tue Dec 28 10:12:04 2010 by  doxygen 1.6.3