vdr-plugin-softhddevice-drm-gles 1.4.0
Macros | Functions
glhelpers.h File Reference

Some helper functions for GL. More...

#include <stdio.h>
#include <stdlib.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include "logger.h"
Include dependency graph for glhelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GL_CHECK(stmt)
 
#define EGL_CHECK(stmt)
 

Functions

static void glCheckError (const char *stmt, const char *fname, int line)
 
static void eglCheckError (const char *stmt, const char *fname, int line)
 

Detailed Description

Some helper functions for GL.

Definition in file glhelpers.h.

Macro Definition Documentation

◆ EGL_CHECK

#define EGL_CHECK (   stmt)
Value:
do { \
stmt; \
eglCheckError(#stmt, __FILE__, __LINE__); \
} while (0)

Definition at line 60 of file glhelpers.h.

◆ GL_CHECK

#define GL_CHECK (   stmt)
Value:
do { \
stmt; \
glCheckError(#stmt, __FILE__, __LINE__); \
} while (0)

Definition at line 55 of file glhelpers.h.

Function Documentation

◆ eglCheckError()

static void eglCheckError ( const char *  stmt,
const char *  fname,
int  line 
)
inlinestatic

Definition at line 49 of file glhelpers.h.

References LOGERROR.

◆ glCheckError()

static void glCheckError ( const char *  stmt,
const char *  fname,
int  line 
)
inlinestatic

Definition at line 43 of file glhelpers.h.

References LOGERROR.