Equalizer  1.9.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gl.h File Reference

Includes OpenGL and GLEW headers. More...

#include <eq/api.h>
#include <string>
+ Include dependency graph for gl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 eq
 The Equalizer client library.
 

Macros

#define EQ_GL_ERROR(when)
 
#define EQ_GL_CALL(code)
 

Functions

EQ_API void eq::debugGLError (const std::string &when, const GLenum error, const char *file, const int line)
 Output an error OpenGL in a human-readable form to LBWARN.
 
EQ_API std::string eq::glError (const GLenum error)
 

Detailed Description

Includes OpenGL and GLEW headers.

Define EQ_IGNORE_GLEW before including any Equalizer header if you have trouble with your system-installed OpenGL header and do not need GLEW.

Definition in file gl.h.

Macro Definition Documentation

#define EQ_GL_CALL (   code)
Value:
{ \
EQ_GL_ERROR( std::string( "before " ) + #code ); \
code; \
EQ_GL_ERROR( std::string( "after " ) + #code ); \
}

Definition at line 92 of file gl.h.

#define EQ_GL_ERROR (   when)
Value:
{ \
const GLenum eqGlError = glGetError(); \
if( eqGlError ) \
eq::debugGLError( when, eqGlError, __FILE__, __LINE__ ); \
}
EQ_API void debugGLError(const std::string &when, const GLenum error, const char *file, const int line)
Output an error OpenGL in a human-readable form to LBWARN.

Definition at line 85 of file gl.h.