JeVois  1.16
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
OpenGL.H File Reference
#include <sstream>
#include <jevois/Debug/Log.H>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES3/gl3.h>
#include <GLES3/gl3ext.h>
#include <GLES3/gl31.h>
#include <GLES3/gl32.h>
Include dependency graph for OpenGL.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 jevois
 

Macros

#define GL_CHECK(stmt)
 Simple macro to check for OpenGL errors. More...
 
#define GL_CHECK_BOOL(stmt)
 Simple macro to check for OpenGL errors when a boolean result is expected. More...
 

Functions

std::string jevois::opengl_error (int err)
 Function to write OpenGL errors in clear witout requiring GLUT. More...
 

Macro Definition Documentation

◆ GL_CHECK

#define GL_CHECK (   stmt)
Value:
do { stmt; GLenum _err = glGetError(); \
if (_err != GL_NO_ERROR) LFATAL("Error " << jevois::opengl_error(_err) <<" in: " << #stmt); } while (0)

Simple macro to check for OpenGL errors.

Inspired from here: http://stackoverflow.com/questions/11256470/define-a-macro-to-facilitate-opengl-command-debugging

Definition at line 77 of file OpenGL.H.

◆ GL_CHECK_BOOL

#define GL_CHECK_BOOL (   stmt)
Value:
do { int _result = stmt; if (_result == 0) LERROR("Failed: " #stmt); \
GLenum _err = glGetError(); \
if (_err != GL_NO_ERROR) LFATAL("Error " << jevois::opengl_error(_err) <<" in: " << #stmt); } while (0)

Simple macro to check for OpenGL errors when a boolean result is expected.

Definition at line 81 of file OpenGL.H.

LERROR
#define LERROR(msg)
Convenience macro for users to print out console or syslog messages, ERROR level.
Definition: Log.H:198
LFATAL
#define LFATAL(msg)
Convenience macro for users to print out console or syslog messages, FATAL level.
Definition: Log.H:217
jevois::opengl_error
std::string opengl_error(int err)
Function to write OpenGL errors in clear witout requiring GLUT.
Definition: OpenGL.H:60