gl-utils.cc File Reference

Include dependency graph for gl-utils.cc:

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 Documentation

#define GLEW_STATIC   1

Function Documentation

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

Here is the call graph for this function:

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