JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
GPUprogram Class Reference

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.
 

Detailed Description

Simple class to load and compile some OpenGL-ES program.

Definition at line 23 of file GPUprogram.H.

Constructor & Destructor Documentation

◆ GPUprogram()

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::~GPUprogram ( )

Destructor, deletes the program from OpenGL and frees up the ID.

Definition at line 41 of file GPUprogram.C.

References GPUshader::id().

Member Function Documentation

◆ 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.


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