JeVois  1.21
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
OpenGL.H File Reference
#include <sstream>
#include <jevois/Debug/Log.H>
#include <EGL/eglplatform.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

namespace  jevois
 Main namespace for all JeVois classes and functions.
 

Macros

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

Functions

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

Macro Definition Documentation

◆ EGL_EGLEXT_PROTOTYPES

#define EGL_EGLEXT_PROTOTYPES

Definition at line 24 of file OpenGL.H.

◆ 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)
#define LFATAL(msg)
Convenience macro for users to print out console or syslog messages, FATAL level.
Definition Log.H:230
std::string opengl_error(int err)
Function to write OpenGL errors in clear witout requiring GLUT.
Definition OpenGL.H:60

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)
#define LERROR(msg)
Convenience macro for users to print out console or syslog messages, ERROR level.
Definition Log.H:211

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

Definition at line 81 of file OpenGL.H.

◆ GL_GLEXT_PROTOTYPES

#define GL_GLEXT_PROTOTYPES

Definition at line 25 of file OpenGL.H.