UFO: Alien Invasion
r_error.h File Reference

Error checking function. More...

#include "../../shared/cxx.h"
Include dependency graph for r_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

Detailed Description

Error checking function.

Definition in file r_error.h.

Macro Definition Documentation

◆ GL_ERROR_TRANSLATE

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

Definition at line 31 of file r_error.h.

◆ R_CheckError

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

Definition at line 30 of file r_error.h.

Function Documentation

◆ R_CheckErrorDebug()

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

Checks for opengl errors.

Definition at line 65 of file r_error.h.

References Com_Printf(), GL_FRAMEBUFFER_COMPLETE_EXT, GL_FRAMEBUFFER_EXT, GLenum, glGetError(), cvar_t::integer, r_checkerror, and R_TranslateError().

◆ R_TranslateError()