|
| StateSet () |
|
| StateSet (const StateSet &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
|
virtual Object * | cloneType () const |
|
virtual Object * | clone (const CopyOp ©op) const |
|
virtual bool | isSameKindAs (const Object *obj) const |
|
virtual const char * | libraryName () const |
|
virtual const char * | className () const |
|
int | compare (const StateSet &rhs, bool compareAttributeContents=false) const |
|
bool | operator< (const StateSet &rhs) const |
|
bool | operator== (const StateSet &rhs) const |
|
bool | operator!= (const StateSet &rhs) const |
|
const ParentList & | getParents () const |
|
ParentList | getParents () |
|
Object * | getParent (unsigned int i) |
|
const Object * | getParent (unsigned int i) const |
|
unsigned int | getNumParents () const |
|
virtual void | computeDataVariance () |
|
void | setGlobalDefaults () |
|
void | clear () |
|
void | merge (const StateSet &rhs) |
|
void | setMode (StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
|
void | removeMode (StateAttribute::GLMode mode) |
|
StateAttribute::GLModeValue | getMode (StateAttribute::GLMode mode) const |
|
void | setModeList (ModeList &ml) |
|
ModeList & | getModeList () |
|
const ModeList & | getModeList () const |
|
void | setAttribute (StateAttribute *attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) |
|
void | setAttributeAndModes (StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON) |
|
void | removeAttribute (StateAttribute::Type type, unsigned int member=0) |
|
void | removeAttribute (StateAttribute *attribute) |
|
StateAttribute * | getAttribute (StateAttribute::Type type, unsigned int member=0) |
|
const StateAttribute * | getAttribute (StateAttribute::Type type, unsigned int member=0) const |
|
const RefAttributePair * | getAttributePair (StateAttribute::Type type, unsigned int member=0) const |
|
void | setAttributeList (AttributeList &al) |
|
AttributeList & | getAttributeList () |
|
const AttributeList & | getAttributeList () const |
|
void | setTextureMode (unsigned int unit, StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
|
void | removeTextureMode (unsigned int unit, StateAttribute::GLMode mode) |
|
StateAttribute::GLModeValue | getTextureMode (unsigned int unit, StateAttribute::GLMode mode) const |
|
void | setTextureModeList (TextureModeList &tml) |
|
TextureModeList & | getTextureModeList () |
|
const TextureModeList & | getTextureModeList () const |
|
unsigned int | getNumTextureModeLists () const |
|
void | setTextureAttribute (unsigned int unit, StateAttribute *attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) |
|
void | setTextureAttributeAndModes (unsigned int unit, StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON) |
|
void | removeTextureAttribute (unsigned int unit, StateAttribute::Type type) |
|
void | removeTextureAttribute (unsigned int unit, StateAttribute *attribute) |
|
StateAttribute * | getTextureAttribute (unsigned int unit, StateAttribute::Type type) |
|
const StateAttribute * | getTextureAttribute (unsigned int unit, StateAttribute::Type type) const |
|
const RefAttributePair * | getTextureAttributePair (unsigned int unit, StateAttribute::Type type) const |
|
void | setTextureAttributeList (TextureAttributeList &tal) |
|
TextureAttributeList & | getTextureAttributeList () |
|
const TextureAttributeList & | getTextureAttributeList () const |
|
unsigned int | getNumTextureAttributeLists () const |
|
void | setAssociatedModes (const StateAttribute *attribute, StateAttribute::GLModeValue value) |
|
void | removeAssociatedModes (const StateAttribute *attribute) |
|
void | setAssociatedTextureModes (unsigned int unit, const StateAttribute *attribute, StateAttribute::GLModeValue value) |
|
void | removeAssociatedTextureModes (unsigned int unit, const StateAttribute *attribute) |
|
void | addUniform (Uniform *uniform, StateAttribute::OverrideValue value=StateAttribute::ON) |
|
void | removeUniform (const std::string &name) |
|
void | removeUniform (Uniform *uniform) |
|
Uniform * | getUniform (const std::string &name) |
|
Uniform * | getOrCreateUniform (const std::string &name, Uniform::Type type, unsigned int numElements=1) |
|
const Uniform * | getUniform (const std::string &name) const |
|
const RefUniformPair * | getUniformPair (const std::string &name) const |
|
void | setUniformList (UniformList &al) |
|
UniformList & | getUniformList () |
|
const UniformList & | getUniformList () const |
|
void | setRenderingHint (int hint) |
|
int | getRenderingHint () const |
|
void | setRenderBinDetails (int binNum, const std::string &binName, RenderBinMode mode=USE_RENDERBIN_DETAILS) |
|
void | setRenderBinToInherit () |
|
bool | useRenderBinDetails () const |
|
void | setRenderBinMode (RenderBinMode mode) |
|
RenderBinMode | getRenderBinMode () const |
|
void | setBinNumber (int num) |
|
int | getBinNumber () const |
|
void | setBinName (const std::string &name) |
|
const std::string & | getBinName () const |
|
void | setNestRenderBins (bool val) |
|
bool | getNestRenderBins () const |
|
void | setUpdateCallback (Callback *ac) |
|
Callback * | getUpdateCallback () |
|
const Callback * | getUpdateCallback () const |
|
bool | requiresUpdateTraversal () const |
|
unsigned int | getNumChildrenRequiringUpdateTraversal () const |
|
void | runUpdateCallbacks (osg::NodeVisitor *nv) |
|
void | setEventCallback (Callback *ac) |
|
Callback * | getEventCallback () |
|
const Callback * | getEventCallback () const |
|
bool | requiresEventTraversal () const |
|
unsigned int | getNumChildrenRequiringEventTraversal () const |
|
void | runEventCallbacks (osg::NodeVisitor *nv) |
|
bool | checkValidityOfAssociatedModes (State &state) const |
|
virtual void | setThreadSafeRefUnref (bool threadSafe) |
|
void | compileGLObjects (State &state) const |
|
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
|
virtual void | releaseGLObjects (State *state=0) const |
|
| Object () |
|
| Object (bool threadSafeRefUnref) |
|
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
|
virtual void | setName (const std::string &name) |
|
void | setName (const char *name) |
|
const std::string & | getName () const |
|
void | setDataVariance (DataVariance dv) |
|
DataVariance | getDataVariance () const |
|
void | setUserDataContainer (osg::UserDataContainer *udc) |
|
osg::UserDataContainer * | getUserDataContainer () |
|
const osg::UserDataContainer * | getUserDataContainer () const |
|
osg::UserDataContainer * | getOrCreateUserDataContainer () |
|
virtual void | setUserData (Referenced *obj) |
|
virtual Referenced * | getUserData () |
|
virtual const Referenced * | getUserData () const |
|
template<typename T > |
bool | getUserValue (const std::string &name, T &value) const |
|
template<typename T > |
void | setUserValue (const std::string &name, const T &value) |
|
template<typename T > |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject bool | getUserValue (const std::string &name, T &value) const |
|
| Referenced () |
|
| Referenced (bool threadSafeRefUnref) |
|
| Referenced (const Referenced &) |
|
Referenced & | operator= (const Referenced &) |
|
bool | getThreadSafeRefUnref () const |
|
OpenThreads::Mutex * | getRefMutex () const |
|
int | ref () const |
|
int | unref () const |
|
int | unref_nodelete () const |
|
int | referenceCount () const |
|
ObserverSet * | getObserverSet () const |
|
ObserverSet * | getOrCreateObserverSet () const |
|
void | addObserver (Observer *observer) const |
|
void | removeObserver (Observer *observer) const |
|
|
virtual | ~StateSet () |
|
StateSet & | operator= (const StateSet &) |
|
void | addParent (osg::Object *object) |
|
void | removeParent (osg::Object *object) |
|
ModeList & | getOrCreateTextureModeList (unsigned int unit) |
|
AttributeList & | getOrCreateTextureAttributeList (unsigned int unit) |
|
int | compareModes (const ModeList &lhs, const ModeList &rhs) |
|
int | compareAttributePtrs (const AttributeList &lhs, const AttributeList &rhs) |
|
int | compareAttributeContents (const AttributeList &lhs, const AttributeList &rhs) |
|
void | setMode (ModeList &modeList, StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
|
void | setModeToInherit (ModeList &modeList, StateAttribute::GLMode mode) |
|
StateAttribute::GLModeValue | getMode (const ModeList &modeList, StateAttribute::GLMode mode) const |
|
void | setAttribute (AttributeList &attributeList, StateAttribute *attribute, const StateAttribute::OverrideValue value=StateAttribute::OFF) |
|
StateAttribute * | getAttribute (AttributeList &attributeList, const StateAttribute::Type type, unsigned int member) |
|
const StateAttribute * | getAttribute (const AttributeList &attributeList, const StateAttribute::Type type, unsigned int member) const |
|
const RefAttributePair * | getAttributePair (const AttributeList &attributeList, const StateAttribute::Type type, unsigned int member) const |
|
void | setNumChildrenRequiringUpdateTraversal (unsigned int num) |
|
void | setNumChildrenRequiringEventTraversal (unsigned int num) |
|
virtual | ~Object () |
|
virtual | ~Referenced () |
|
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
|
void | deleteUsingDeleteHandler () const |
|
Stores a set of modes and attributes which represent a set of OpenGL state. Notice that a StateSet
contains just a subset of the whole OpenGL state.
In OSG, each Drawable
and each Node
has a reference to a StateSet
. These StateSet
s can be shared between different Drawable
s and Node
s (that is, several Drawable
s and Node
s can reference the same StateSet
). Indeed, this practice is recommended whenever possible, as this minimizes expensive state changes in the graphics pipeline.