docs/html/glUtility_8h.html
| | Jetson Inference
DNN Vision Library |
glUtility.h File Reference
#include <GL/glew.h>
#include <GL/glx.h>
#include <stdio.h>
#include "logging.h"
Go to the source code of this file.
|
|
| #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...
|
| |
|
|
| 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...
|
| |
| void | glDrawLine (float x1, float y1, float x2, float y2, float r, float g, float b, float a=1.0f, float thickness=2.0f) |
| | Render a line in screen coordinates with the specified color. More...
|
| |
| void | glDrawOutline (float x, float y, float width, float height, float r, float g, float b, float a=1.0f, float thickness=2.0f) |
| | Render the outline of a rect in screen coordinates with the specified color. More...
|
| |
| void | glDrawRect (float x, float y, float width, float height, float r, float g, float b, float a=1.0f) |
| | Render a filled rect in screen coordinates with the specified color. More...
|
| |