Equalizer 1.0

gl.h File Reference

Includes OpenGL headers (GLEW). More...

#include <eq/api.h>
#include <string>
#include <eq/GL/glew.h>
#include <eq/GL/glxew.h>
#include <eq/GL/wglew.h>
#include <GL/gl.h>
Include dependency graph for gl.h:

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

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 74 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 67 of file gl.h.

Generated on Sun May 8 2011 19:11:08 for Equalizer 1.0 by  doxygen 1.7.3