#include <SoGLShaderObject.h>

Public Member Functions | |
| SoGLShaderObject (SoShader::ShaderType shaderType) | |
| Constructor. | |
| virtual | ~SoGLShaderObject () |
| Destructor. | |
| virtual void | reset () |
| Free all resources (OpenGL too) and reset instance to initial state. | |
| void | activate (SbBool act) |
| SbBool | isActive () const |
| SoShader::ShaderType | shaderType () const |
| void | setSource (const SbString &source) |
| const SbString & | getSource () const |
| void | attach (SoGLShaderProgram *shaderProgram) |
| void | detach () |
| SbBool | isCreated () const |
| void | compile (int context) |
| void | scheduleCompile () |
| SbBool | shouldCompile () const |
| void | scheduleRebuild () |
| SoGLShaderProgram * | getShaderProgram () const |
Protected Attributes | |
| SoShader::ShaderType | _shaderType |
| SbBool | _isActive |
| SbString | _source |
| SbBool | _shouldCompile |
| SoGLShaderProgram * | _shaderProgram |
| GLuint | _shaderHandle |
Definition at line 24 of file SoGLShaderObject.h.
| SoGLShaderObject::SoGLShaderObject | ( | SoShader::ShaderType | shaderType | ) |
Constructor.
| virtual SoGLShaderObject::~SoGLShaderObject | ( | ) | [virtual] |
Destructor.
| void SoGLShaderObject::activate | ( | SbBool | act | ) |
| void SoGLShaderObject::attach | ( | SoGLShaderProgram * | shaderProgram | ) |
| void SoGLShaderObject::compile | ( | int | context | ) |
| void SoGLShaderObject::detach | ( | ) |
| SoGLShaderProgram* SoGLShaderObject::getShaderProgram | ( | ) | const [inline] |
Definition at line 84 of file SoGLShaderObject.h.
| const SbString& SoGLShaderObject::getSource | ( | ) | const [inline] |
Definition at line 49 of file SoGLShaderObject.h.
| SbBool SoGLShaderObject::isActive | ( | ) | const [inline] |
Definition at line 40 of file SoGLShaderObject.h.
| SbBool SoGLShaderObject::isCreated | ( | ) | const [inline] |
Definition at line 56 of file SoGLShaderObject.h.
| virtual void SoGLShaderObject::reset | ( | ) | [virtual] |
| void SoGLShaderObject::scheduleCompile | ( | ) | [inline] |
Definition at line 68 of file SoGLShaderObject.h.
| void SoGLShaderObject::scheduleRebuild | ( | ) | [inline] |
Definition at line 75 of file SoGLShaderObject.h.
| void SoGLShaderObject::setSource | ( | const SbString & | source | ) |
| SoShader::ShaderType SoGLShaderObject::shaderType | ( | ) | const [inline] |
Definition at line 44 of file SoGLShaderObject.h.
| SbBool SoGLShaderObject::shouldCompile | ( | ) | const [inline] |
Definition at line 71 of file SoGLShaderObject.h.
SbBool SoGLShaderObject::_isActive [protected] |
Definition at line 91 of file SoGLShaderObject.h.
GLuint SoGLShaderObject::_shaderHandle [protected] |
Definition at line 102 of file SoGLShaderObject.h.
SoGLShaderProgram* SoGLShaderObject::_shaderProgram [protected] |
Definition at line 96 of file SoGLShaderObject.h.
SoShader::ShaderType SoGLShaderObject::_shaderType [protected] |
Definition at line 90 of file SoGLShaderObject.h.
SbBool SoGLShaderObject::_shouldCompile [protected] |
Definition at line 94 of file SoGLShaderObject.h.
SbString SoGLShaderObject::_source [protected] |
Definition at line 93 of file SoGLShaderObject.h.
1.5.8