JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Simple class to load and compile some OpenGL-ES shader code. More...
#include <jevoisbase/Components/FilterGPU/GPUshader.H>
Public Member Functions | |
GPUshader () | |
Constructor. | |
~GPUshader () | |
Destructor. | |
void | load (char const *filename, GLuint type) |
Load a shader from file. | |
GLuint | id () const |
Get the shader's ID. | |
Simple class to load and compile some OpenGL-ES shader code.
Definition at line 23 of file GPUshader.H.
GPUshader::GPUshader | ( | ) |
Constructor.
Definition at line 21 of file GPUshader.C.
GPUshader::~GPUshader | ( | ) |
Destructor.
Definition at line 26 of file GPUshader.C.
GLuint GPUshader::id | ( | ) | const |
Get the shader's ID.
Definition at line 33 of file GPUshader.C.
Referenced by GPUprogram::GPUprogram(), and GPUprogram::~GPUprogram().
void GPUshader::load | ( | char const * | filename, |
GLuint | type | ||
) |
Load a shader from file.
type should be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER
Definition at line 37 of file GPUshader.C.
References GL_CHECK, LERROR, LINFO, and PLFATAL.
Referenced by GPUprogram::GPUprogram().