osg::Shader::PerContextShader Class Reference

Inheritance diagram for osg::Shader::PerContextShader:
osg::Referenced

List of all members.

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
void detachShader (GLuint program) const

Protected Member Functions

 ~PerContextShader ()

Protected Attributes

const Shader_shader
osg::ref_ptr< osg::GL2Extensions_extensions
GLuint _glShaderHandle
bool _needsCompile
bool _isCompiled
const unsigned int _contextID

Detailed Description

PerContextShader (PCS) is an OSG-internal encapsulation of glShader per-GL context.


Constructor & Destructor Documentation

osg::Shader::PerContextShader::PerContextShader ( const Shader shader,
unsigned int  contextID 
)
osg::Shader::PerContextShader::~PerContextShader (  )  [protected]

Member Function Documentation

void osg::Shader::PerContextShader::attachShader ( GLuint  program  )  const

Attach our glShader to a glProgram

void osg::Shader::PerContextShader::compileShader (  ) 
void osg::Shader::PerContextShader::detachShader ( GLuint  program  )  const

Detach our glShader from a glProgram

GLuint osg::Shader::PerContextShader::getHandle (  )  const [inline]
bool osg::Shader::PerContextShader::getInfoLog ( std::string &  infoLog  )  const
bool osg::Shader::PerContextShader::isCompiled (  )  const [inline]
bool osg::Shader::PerContextShader::needsCompile (  )  const [inline]
void osg::Shader::PerContextShader::requestCompile (  ) 

Member Data Documentation

const unsigned int osg::Shader::PerContextShader::_contextID [protected]

Pointer to this context's extension functions.

Handle to the actual glShader.

Is our glShader successfully compiled?

Does our glShader need to be recompiled?

Pointer to our parent osg::Shader


The documentation for this class was generated from the following file:
Generated on Sat Jun 5 21:48:03 2010 for openscenegraph by  doxygen 1.6.3