JeVoisBase  1.2
JeVois Smart Embedded Machine Vision Toolkit Base Modules
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 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

 jevoisbase
 

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 jevoisbase::opengl_error (int err)
 Function to write OpenGL errors in clear witout requiring GLUT. More...
 

Macro Definition Documentation

#define GL_CHECK (   stmt)
Value:
do { stmt; GLenum _err = glGetError(); \
if (_err != GL_NO_ERROR) LFATAL("Error " << jevoisbase::opengl_error(_err) <<" in: " << #stmt); } while (0)
std::string opengl_error(int err)
Function to write OpenGL errors in clear witout requiring GLUT.
Definition: OpenGL.H:32

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 49 of file OpenGL.H.

Referenced by GPUtexture::getPixels(), GPUprogram::GPUprogram(), GPUtexture::GPUtexture(), GPUshader::load(), FilterGPU::process(), and GPUtexture::setPixels().

#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 " << jevoisbase::opengl_error(_err) <<" in: " << #stmt); } while (0)
#define LERROR(msg)
std::string opengl_error(int err)
Function to write OpenGL errors in clear witout requiring GLUT.
Definition: OpenGL.H:32

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

Definition at line 53 of file OpenGL.H.