Equalizer  1.4.1
Namespaces | Defines | Functions
gl.h File Reference

Includes OpenGL and GLEW headers. More...

#include <eq/client/api.h>
#include <string>
#include <eq/GL/glew.h>
#include <eq/GL/glxew.h>
#include <eq/GL/wglew.h>
#include <OpenGL/gl.h>
+ 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

namespace  eq
 

The Equalizer client library.


Defines

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

Functions

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


Define 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__ );    \
    }

Definition at line 85 of file gl.h.

Generated on Mon Nov 26 2012 14:41:50 for Equalizer 1.4.1 by  doxygen 1.7.6.1