JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Simple class to load and compile some OpenGL-ES program. More...
#include <jevoisbase/Components/FilterGPU/GPUprogram.H>
Public Member Functions | |
GPUprogram (char const *vertex_shader, char const *fragment_shader) | |
Constructor, loads and compiles the program, assigns it a program ID. | |
~GPUprogram () | |
Destructor, deletes the program from OpenGL and frees up the ID. | |
GLuint | id () const |
Get the program ID so we can tell OpenGL to use this program. | |
Simple class to load and compile some OpenGL-ES program.
Definition at line 23 of file GPUprogram.H.
GPUprogram::GPUprogram | ( | char const * | vertex_shader, |
char const * | fragment_shader | ||
) |
Constructor, loads and compiles the program, assigns it a program ID.
Definition at line 21 of file GPUprogram.C.
References GL_CHECK, GPUshader::id(), LINFO, and GPUshader::load().
GPUprogram::~GPUprogram | ( | ) |
Destructor, deletes the program from OpenGL and frees up the ID.
Definition at line 41 of file GPUprogram.C.
References GPUshader::id().
GLuint GPUprogram::id | ( | ) | const |
Get the program ID so we can tell OpenGL to use this program.
Definition at line 53 of file GPUprogram.C.