Equalizer  1.2.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 EQWARN.

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 88 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 81 of file gl.h.

Generated on Fri Jun 8 2012 15:44:33 for Equalizer 1.2.1 by  doxygen 1.8.0