VAPOR3 3.9.4
|
Provides a C++ interface to the OpenGL shader program construct. More...
#include <ShaderProgram.h>
Public Member Functions | |
SmartShaderProgram (ShaderProgram *program) | |
~SmartShaderProgram () | |
ShaderProgram * | operator-> () |
bool | IsValid () const |
Friends | |
class | ShaderManager |
Provides a C++ interface to the OpenGL shader program construct.
This class causes shaders to automatically bind when requested from the ShaderManager. Once the object becomes out of scope, the shader is unbound. Since this class is intended to be used as an object, not a pointer, IsValid replaces the usual NULL check
Definition at line 111 of file ShaderProgram.h.
VAPoR::SmartShaderProgram::SmartShaderProgram | ( | ShaderProgram * | program | ) |
VAPoR::SmartShaderProgram::~SmartShaderProgram | ( | ) |
bool VAPoR::SmartShaderProgram::IsValid | ( | ) | const |
|
inline |
Definition at line 117 of file ShaderProgram.h.
|
friend |
Definition at line 119 of file ShaderProgram.h.