Public Member Functions | |
PerContextShader (const Shader *shader, unsigned int contextID) | |
GLuint | getHandle () const |
void | requestCompile () |
void | compileShader () |
bool | needsCompile () const |
bool | isCompiled () const |
bool | getInfoLog (std::string &infoLog) const |
void | attachShader (GLuint program) const |
Attach our glShader to a glProgram. | |
void | detachShader (GLuint program) const |
Detach our glShader from a glProgram. | |
Protected Member Functions | |
~PerContextShader () | |
Protected Attributes | |
const Shader * | _shader |
Pointer to our parent osg::Shader. | |
osg::ref_ptr < osg::GL2Extensions > | _extensions |
Pointer to this context's extension functions. | |
GLuint | _glShaderHandle |
Handle to the actual glShader. | |
bool | _needsCompile |
Does our glShader need to be recompiled? | |
bool | _isCompiled |
Is our glShader successfully compiled? | |
const unsigned int | _contextID |
osg::Shader::PerContextShader::PerContextShader | ( | const Shader * | shader, | |
unsigned int | contextID | |||
) |
osg::Shader::PerContextShader::~PerContextShader | ( | ) | [protected] |
GLuint osg::Shader::PerContextShader::getHandle | ( | ) | const [inline] |
void osg::Shader::PerContextShader::requestCompile | ( | ) |
void osg::Shader::PerContextShader::compileShader | ( | ) |
bool osg::Shader::PerContextShader::needsCompile | ( | ) | const [inline] |
bool osg::Shader::PerContextShader::isCompiled | ( | ) | const [inline] |
bool osg::Shader::PerContextShader::getInfoLog | ( | std::string & | infoLog | ) | const |
void osg::Shader::PerContextShader::attachShader | ( | GLuint | program | ) | const |
Attach our glShader to a glProgram.
void osg::Shader::PerContextShader::detachShader | ( | GLuint | program | ) | const |
Detach our glShader from a glProgram.
const Shader* osg::Shader::PerContextShader::_shader [protected] |
Pointer to our parent osg::Shader.
Pointer to this context's extension functions.
GLuint osg::Shader::PerContextShader::_glShaderHandle [protected] |
Handle to the actual glShader.
bool osg::Shader::PerContextShader::_needsCompile [protected] |
Does our glShader need to be recompiled?
bool osg::Shader::PerContextShader::_isCompiled [protected] |
Is our glShader successfully compiled?
const unsigned int osg::Shader::PerContextShader::_contextID [protected] |