OpenSceneGraph
3.0.1
|
Public Member Functions | |
ShaderComponent () | |
ShaderComponent (const ShaderComponent &sc, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_Object (osg, ShaderComponent) | |
unsigned int | addShader (osg::Shader *shader) |
void | removeShader (unsigned int i) |
osg::Shader * | getShader (unsigned int i) |
const osg::Shader * | getShader (unsigned int i) const |
unsigned int | getNumShaders () const |
virtual void | compileGLObjects (State &state) const |
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
Resize any per context GLObject buffers to specified size. | |
virtual void | releaseGLObjects (State *state=0) const |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. | |
Protected Types | |
typedef std::vector < osg::ref_ptr< osg::Shader > > | Shaders |
Protected Attributes | |
Shaders | _shaders |
typedef std::vector< osg::ref_ptr<osg::Shader> > osg::ShaderComponent::Shaders [protected] |
osg::ShaderComponent::ShaderComponent | ( | const ShaderComponent & | sc, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) |
unsigned int osg::ShaderComponent::addShader | ( | osg::Shader * | shader | ) |
virtual void osg::ShaderComponent::compileGLObjects | ( | State & | state | ) | const [virtual] |
unsigned int osg::ShaderComponent::getNumShaders | ( | ) | const [inline] |
osg::Shader* osg::ShaderComponent::getShader | ( | unsigned int | i | ) | [inline] |
const osg::Shader* osg::ShaderComponent::getShader | ( | unsigned int | i | ) | const [inline] |
virtual void osg::ShaderComponent::releaseGLObjects | ( | State * | = 0 | ) | const [virtual] |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context.
Otherwise, releases OpenGL objects for all graphics contexts.
Reimplemented from osg::Object.
void osg::ShaderComponent::removeShader | ( | unsigned int | i | ) |
virtual void osg::ShaderComponent::resizeGLObjectBuffers | ( | unsigned int | ) | [virtual] |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::Object.
Shaders osg::ShaderComponent::_shaders [protected] |
![]() | Generated at Sat Apr 28 2012 08:53:08 for the OpenSceneGraph by doxygen 1.8.0. |