OpenSceneGraph  3.0.1
Public Member Functions | Protected Types | Protected Attributes
osg::ShaderComponent Class Reference
Inheritance diagram for osg::ShaderComponent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ShaderComponent ()
 ShaderComponent (const ShaderComponent &sc, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 META_Object (osg, ShaderComponent)
unsigned int addShader (osg::Shader *shader)
void removeShader (unsigned int i)
osg::ShadergetShader (unsigned int i)
const osg::ShadergetShader (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

Member Typedef Documentation

typedef std::vector< osg::ref_ptr<osg::Shader> > osg::ShaderComponent::Shaders [protected]

Constructor & Destructor Documentation

osg::ShaderComponent::ShaderComponent ( )
osg::ShaderComponent::ShaderComponent ( const ShaderComponent sc,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
)

Member Function Documentation

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]
osg::ShaderComponent::META_Object ( osg  ,
ShaderComponent   
)
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.


Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5.