UFO: Alien Invasion
Loading...
Searching...
No Matches
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()
#define GL_ERROR_TRANSLATE(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.

Macro Definition Documentation

◆ GL_ERROR_TRANSLATE

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

Definition at line 31 of file r_error.h.

Referenced by R_TranslateError().

◆ R_CheckError

Function Documentation

◆ R_CheckErrorDebug()

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(), r_checkerror, and R_TranslateError().

◆ R_TranslateError()