JeVoisBase  1.5
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
GPUshader Class Reference

Simple class to load and compile some OpenGL-ES shader code. More...

#include <jevoisbase/Components/FilterGPU/GPUshader.H>

Public Member Functions

 GPUshader ()
 Constructor. More...
 
 ~GPUshader ()
 Destructor. More...
 
void load (char const *filename, GLuint type)
 Load a shader from file. More...
 
GLuint id () const
 Get the shader's ID. More...
 

Detailed Description

Simple class to load and compile some OpenGL-ES shader code.

Definition at line 23 of file GPUshader.H.

Constructor & Destructor Documentation

◆ GPUshader()

GPUshader::GPUshader ( )

Constructor.

Definition at line 21 of file GPUshader.C.

◆ ~GPUshader()

GPUshader::~GPUshader ( )

Destructor.

Definition at line 26 of file GPUshader.C.

Member Function Documentation

◆ id()

GLuint GPUshader::id ( ) const

Get the shader's ID.

Definition at line 33 of file GPUshader.C.

Referenced by GPUprogram::GPUprogram(), and GPUprogram::~GPUprogram().

◆ load()

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().


The documentation for this class was generated from the following files: