List of all members.
Member Typedef Documentation
Constructor & Destructor Documentation
osg::ShaderAttribute::ShaderAttribute |
( |
| ) |
|
osg::ShaderAttribute::ShaderAttribute |
( |
const ShaderAttribute & |
sa, |
|
|
const CopyOp & |
copyop = CopyOp::SHALLOW_COPY |
|
) |
| |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::ShaderAttribute::~ShaderAttribute |
( |
| ) |
[protected, virtual] |
Member Function Documentation
unsigned int osg::ShaderAttribute::addShader |
( |
Shader * |
shader | ) |
[inline] |
unsigned int osg::ShaderAttribute::addUniform |
( |
Uniform * |
uniform | ) |
|
virtual void osg::ShaderAttribute::apply |
( |
State & |
| ) |
const [virtual] |
apply the OpenGL state attributes. The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Reimplemented from osg::StateAttribute.
virtual const char* osg::ShaderAttribute::className |
( |
| ) |
const [inline, virtual] |
Clone an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
virtual osg::Object* osg::ShaderAttribute::cloneType |
( |
| ) |
const [virtual] |
Clone the type of an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
virtual int osg::ShaderAttribute::compare |
( |
const StateAttribute & |
sa | ) |
const [virtual] |
virtual void osg::ShaderAttribute::compileGLObjects |
( |
State & |
| ) |
const [virtual] |
Default to nothing to compile - all state is applied immediately.
Reimplemented from osg::StateAttribute.
unsigned int osg::ShaderAttribute::getNumShaders |
( |
| ) |
const [inline] |
unsigned int osg::ShaderAttribute::getNumUniforms |
( |
| ) |
const [inline] |
Shader* osg::ShaderAttribute::getShader |
( |
unsigned int |
i | ) |
[inline] |
const Shader* osg::ShaderAttribute::getShader |
( |
unsigned int |
i | ) |
const [inline] |
virtual Type osg::ShaderAttribute::getType |
( |
| ) |
const [inline, virtual] |
Uniform* osg::ShaderAttribute::getUniform |
( |
unsigned int |
i | ) |
[inline] |
const Uniform* osg::ShaderAttribute::getUniform |
( |
unsigned int |
i | ) |
const [inline] |
virtual bool osg::ShaderAttribute::isSameKindAs |
( |
const osg::Object * |
obj | ) |
const [inline, virtual] |
Return true if this and obj are of the same kind of object.
Reimplemented from osg::StateAttribute.
References NULL.
virtual const char* osg::ShaderAttribute::libraryName |
( |
| ) |
const [inline, virtual] |
virtual void osg::ShaderAttribute::releaseGLObjects |
( |
State * |
= 0 | ) |
const [virtual] |
Release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objects for all graphics context if State object pointer NULL.
Reimplemented from osg::StateAttribute.
void osg::ShaderAttribute::removeShader |
( |
unsigned int |
i | ) |
[inline] |
void osg::ShaderAttribute::removeUniform |
( |
unsigned int |
i | ) |
|
virtual void osg::ShaderAttribute::resizeGLObjectBuffers |
( |
unsigned int |
| ) |
[virtual] |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::StateAttribute.
void osg::ShaderAttribute::setType |
( |
Type |
type | ) |
|
Member Data Documentation
The documentation for this class was generated from the following file: