r_error.h File Reference

Error checking function. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define R_CheckError()   R_CheckErrorDebug(__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define GL_ERROR_TRANSLATE(e)   case e: return #e;

Functions

static const char * R_TranslateError (GLenum error)
static int R_CheckErrorDebug (const char *file, int line, const char *function)
 Checks for opengl errors.

Detailed Description

Error checking function.

Definition in file r_error.h.


Define Documentation

#define GL_ERROR_TRANSLATE (  )     case e: return #e;

Definition at line 28 of file r_error.h.

Referenced by R_TranslateError().

 
#define R_CheckError (  )     R_CheckErrorDebug(__FILE__, __LINE__, __PRETTY_FUNCTION__)

Function Documentation

static int R_CheckErrorDebug ( const char *  file,
int  line,
const char *  function 
) [static]

Checks for opengl errors.

Definition at line 58 of file r_error.h.

References Com_Printf(), error(), GLenum, cvar_s::integer, r_checkerror, and R_TranslateError().

static const char* R_TranslateError ( GLenum  error  )  [inline, static]

Definition at line 30 of file r_error.h.

References GL_ERROR_TRANSLATE.

Referenced by R_CheckErrorDebug(), and R_InitExtensions().


Generated by  doxygen 1.6.2