Jetson Inference
DNN Vision Library

OpenGL textures and display window (X11/GLX). More...

Classes

class  glDisplay
 OpenGL display window / video viewer. More...
 
class  glTexture
 OpenGL texture with CUDA interoperability. More...
 

Macros

#define LOG_GL   "[OpenGL] "
 OpenGL logging prefix. More...
 
#define GL(x)   { x; glCheckError( #x, __FILE__, __LINE__ ); }
 OpenGL error-checking macro. More...
 
#define GL_VERIFY(x)   { x; if(glCheckError( #x, __FILE__, __LINE__ )) return false; }
 Return false on OpenGL error. More...
 
#define GL_VERIFYN(x)   { x; if(glCheckError( #x, __FILE__, __LINE__ )) return NULL; }
 OpenGL NULL on OpenGL error. More...
 
#define GL_CHECK(msg)   { glCheckError(msg, __FILE__, __LINE__); }
 Print a message on OpenGL error. More...
 

Functions

bool glCheckError (const char *msg, const char *file, int line)
 OpenGL error-checking messsage function. More...
 
bool glCheckError (const char *msg)
 OpenGL error check + logging. More...
 
void glPrintFreeMem ()
 Print the amount of free GPU memory. More...
 

Detailed Description

OpenGL textures and display window (X11/GLX).

Macro Definition Documentation

◆ GL

#define GL (   x)    { x; glCheckError( #x, __FILE__, __LINE__ ); }

OpenGL error-checking macro.

◆ GL_CHECK

#define GL_CHECK (   msg)    { glCheckError(msg, __FILE__, __LINE__); }

Print a message on OpenGL error.

◆ GL_VERIFY

#define GL_VERIFY (   x)    { x; if(glCheckError( #x, __FILE__, __LINE__ )) return false; }

Return false on OpenGL error.

◆ GL_VERIFYN

#define GL_VERIFYN (   x)    { x; if(glCheckError( #x, __FILE__, __LINE__ )) return NULL; }

OpenGL NULL on OpenGL error.

◆ LOG_GL

#define LOG_GL   "[OpenGL] "

OpenGL logging prefix.

Function Documentation

◆ glCheckError() [1/2]

bool glCheckError ( const char *  msg,
const char *  file,
int  line 
)
inline

OpenGL error-checking messsage function.

◆ glCheckError() [2/2]

bool glCheckError ( const char *  msg)
inline

OpenGL error check + logging.

◆ glPrintFreeMem()

void glPrintFreeMem ( )
inline

Print the amount of free GPU memory.