openscenegraph
|
Protected Types | |
typedef std::vector < osg::ref_ptr< osg::Uniform > > | Uniforms |
Protected Member Functions | |
virtual | ~ShaderAttribute () |
![]() | |
virtual | ~StateAttribute () |
void | addParent (osg::StateSet *object) |
void | removeParent (osg::StateSet *object) |
![]() | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
Type | _type |
Uniforms | _uniforms |
![]() | |
ParentList | _parents |
ref_ptr< ShaderComponent > | _shaderComponent |
ref_ptr< StateAttributeCallback > | _updateCallback |
ref_ptr< StateAttributeCallback > | _eventCallback |
![]() | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
|
protected |
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.
|
protectedvirtual |
|
inline |
unsigned int osg::ShaderAttribute::addUniform | ( | Uniform * | uniform | ) |
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.
|
inlinevirtual |
Return the name of the attribute's class type.
Reimplemented from osg::StateAttribute.
|
inlinevirtual |
Clone an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
|
virtual |
Clone the type of an attribute, with Object* return type. Must be defined by derived classes.
Implements osg::StateAttribute.
|
virtual |
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
Default to nothing to compile - all state is applied immediately.
Reimplemented from osg::StateAttribute.
|
virtual |
Return the modes associated with this StateAttribute.
Reimplemented from osg::StateAttribute.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Return the Type identifier of the attribute's class type.
Implements osg::StateAttribute.
|
inline |
References osg::Uniform::get().
|
inline |
References osg::Uniform::get().
|
inlinevirtual |
Return true if this and obj are of the same kind of object.
Reimplemented from osg::StateAttribute.
References NULL.
|
inlinevirtual |
Return the name of the attribute's library.
Reimplemented from osg::StateAttribute.
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.
|
inline |
void osg::ShaderAttribute::removeUniform | ( | unsigned int | i | ) |
|
virtual |
Resize any per context GLObject buffers to specified size.
Reimplemented from osg::StateAttribute.
|
protected |
|
protected |