/cygdrive/d/src/svn/vrut/trunk/core/src/glgetproc.h File Reference

#include <GL/glx.h>

Go to the source code of this file.

Defines

#define GLGETPROC(a)   glXGetProcAddress((const unsigned char *)(a))
#define GLCHECKERROR


Define Documentation

#define GLCHECKERROR

Value:

GLenum errCode = glGetError(); \
       if (errCode != GL_NO_ERROR) \
       { \
              static unsigned glErrCounter = 0; \
              static GLenum lastGlErrCode; \
              if (errCode == lastGlErrCode) \
              { \
                     if (glErrCounter++ == 5) \
                            LOG(wxT("Stopping redundant OpenGL error logging")); \
              } \
              else \
              { \
                     lastGlErrCode = errCode; \
                     glErrCounter = 0; \
              } \
              if (glErrCounter < 5) \
              { \
                     wxString wxglErrStr((const char *)gluErrorString(errCode), wxConvUTF8); \
                     LOGWARNING(wxT("OpenGL error: ") + wxglErrStr); \
              } \
       }

Definition at line 24 of file glgetproc.h.

#define GLGETPROC (  )     glXGetProcAddress((const unsigned char *)(a))

Definition at line 20 of file glgetproc.h.


Generated on Tue Mar 10 14:41:35 2009 for VRUT by  doxygen 1.5.5