Unofficial OpenGL Software Development Kit  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Namespaces | Enumerations
Debug.h File Reference

Includes a function for attaching to ARB/KHR_debug_output and printing error messages automatically. This header must be included after an OpenGL header. More...

#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  glutil
 The main namespace for the GL Utility library. All GL Util functions are in this namespace.
 

Enumerations

enum  glutil::OutputLocation { glutil::STD_OUT, glutil::STD_ERR }
 Possible locations for debug outputs. More...
 

Functions

Debug Output Piping
bool glutil::RegisterDebugOutput (OutputLocation eLoc)
 Registers a function for automatically outputting debug messages. More...
 
Error Codes

These functions are used to convert OpenGL error codes into human-readable strings.

std::string glutil::ErrorCodeToEnumString (GLenum errorCode)
 Generates the enumerator string for an OpenGL error code. More...
 
std::string glutil::ErrorCodeToDescription (GLenum errorCode)
 Generates a string description for an OpenGL error code. More...
 
std::string glutil::FramebufferToEnumString (GLenum framebufferStatus)
 Generates the enumerator string for an OpenGL framebuffer status code. More...
 
std::string glutil::FramebufferToDescription (GLenum framebufferStatus)
 Generates a description for an OpenGL framebuffer status code. More...
 

Detailed Description

Includes a function for attaching to ARB/KHR_debug_output and printing error messages automatically. This header must be included after an OpenGL header.