733 lines
44 KiB
HTML
733 lines
44 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>class SG_EXPORT osg::StateSet</TITLE>
|
|
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
|
|
<H2>class SG_EXPORT <A HREF="#DOC.DOCU">osg::StateSet</A></H2></H2><BLOCKQUOTE> Encapsulates OpenGL state modes and attributes.</BLOCKQUOTE>
|
|
<HR>
|
|
|
|
<H2>Inheritance:</H2>
|
|
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=95>
|
|
<param name=classes value="CReferenced,MReferenced.html,CObject,MObject.html,CStateSet,MStateSet.html">
|
|
<param name=before value="M,M,M">
|
|
<param name=after value="Md_SP,Md_,M">
|
|
<param name=indent value="0,1,2">
|
|
<param name=arrowdir value="down">
|
|
</APPLET>
|
|
<HR>
|
|
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.165.1">StateSet</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.165.2">StateSet</A></B>(const <!1><A HREF="StateSet.html#DOC.2.165.2">StateSet</A>&, const <!1><A HREF="CopyOp.html">CopyOp</A>& copyop=CopyOp::SHALLOW_COPY)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <!1><A HREF="Object.html">Object</A>* <B><A HREF="#DOC.2.165.3">cloneType</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <!1><A HREF="Object.html">Object</A>* <B><A HREF="#DOC.2.165.4">clone</A></B>(const <!1><A HREF="CopyOp.html">CopyOp</A>& copyop) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.165.5">isSameKindAs</A></B>(const <!1><A HREF="Object.html">Object</A>* obj) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.165.6">libraryName</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual const char* <B><A HREF="#DOC.2.165.7">className</A></B>() const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.165.8">compare</A></B>(const <!1><A HREF="StateSet.html">StateSet</A>& rhs, bool <!1><A HREF="StateSet.html#DOC.2.165.69">compareAttributeContents</A>=false) const
|
|
<DD><I>return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.165.9">operator < </A></B>(const <!1><A HREF="StateSet.html">StateSet</A>& rhs) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.165.10">operator == </A></B>(const <!1><A HREF="StateSet.html">StateSet</A>& rhs) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.165.11">operator != </A></B>(const <!1><A HREF="StateSet.html">StateSet</A>& rhs) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.12">setGlobalDefaults</A></B>()
|
|
<DD><I>set all the modes to on or off so that it defines a complete state, typically used for a default global state</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.13">setAllToInherit</A></B>()
|
|
<DD><I>set all the modes to inherit, typically used to signify nodes which inherit all of their modes for the global state</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.14">merge</A></B>(const <!1><A HREF="StateSet.html">StateSet</A>& rhs)
|
|
<DD><I>merge this stateset with stateset rhs, this overrides the rhs if OVERRIDE is specified, otherwise rhs takes precedence</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.16">setMode</A></B>(StateAttribute::GLMode mode, StateAttribute::GLModeValue value)
|
|
<DD><I>set this StateSet to contain specified GLMode and value</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.17">setModeToInherit</A></B>(StateAttribute::GLMode mode)
|
|
<DD><I>set this StateSet to inherit specified GLMode type from parents.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>StateAttribute::GLModeValue <B><A HREF="#DOC.2.165.18">getMode</A></B>(StateAttribute::GLMode mode) const
|
|
<DD><I>get specified GLModeValue for specified GLMode.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& <B><A HREF="#DOC.2.165.19">getModeList</A></B>()
|
|
<DD><I>return the list of all GLModes contained in this StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& <B><A HREF="#DOC.2.165.20">getModeList</A></B>() const
|
|
<DD><I>return the const list of all GLModes contained in this const StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.23">setAttribute</A></B>(<!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::OverrideValue value=StateAttribute::OFF)
|
|
<DD><I>set this StateSet to contain specified attribute and override flag</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.24">setAttributeAndModes</A></B>(<!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value=StateAttribute::ON)
|
|
<DD><I>set this StateSet to contain specified attribute and set the associated GLMode's to specified value</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.25">setAttributeToInherit</A></B>(StateAttribute::Type type)
|
|
<DD><I>set this StateSet to inherit specified attribute type from parents.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateAttribute.html">StateAttribute</A>* <B><A HREF="#DOC.2.165.26">getAttribute</A></B>(StateAttribute::Type type)
|
|
<DD><I>get specified StateAttribute for specified type.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="StateAttribute.html">StateAttribute</A>* <B><A HREF="#DOC.2.165.27">getAttribute</A></B>(StateAttribute::Type type) const
|
|
<DD><I>get specified const StateAttribute for specified type.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>* <B><A HREF="#DOC.2.165.28">getAttributePair</A></B>(StateAttribute::Type type) const
|
|
<DD><I>get specified RefAttributePair for specified type.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& <B><A HREF="#DOC.2.165.29">getAttributeList</A></B>()
|
|
<DD><I>return the list of all StateAttributes contained in this StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& <B><A HREF="#DOC.2.165.30">getAttributeList</A></B>() const
|
|
<DD><I>return the const list of all StateAttributes contained in this const StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.32">setTextureMode</A></B>(unsigned int unit, StateAttribute::GLMode mode, StateAttribute::GLModeValue value)
|
|
<DD><I>set this StateSet to contain specified GLMode and value</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.33">setTextureModeToInherit</A></B>(unsigned int unit, StateAttribute::GLMode mode)
|
|
<DD><I>set this StateSet to inherit specified GLMode type from parents.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>StateAttribute::GLModeValue <B><A HREF="#DOC.2.165.34">getTextureMode</A></B>(unsigned int unit, StateAttribute::GLMode mode) const
|
|
<DD><I>get specified GLModeValue for specified GLMode.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html#DOC.2.165.31">TextureModeList</A>& <B><A HREF="#DOC.2.165.35">getTextureModeList</A></B>()
|
|
<DD><I>return the list of all Texture related GLModes contained in this StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="StateSet.html#DOC.2.165.31">TextureModeList</A>& <B><A HREF="#DOC.2.165.36">getTextureModeList</A></B>() const
|
|
<DD><I>return the const list of all Texture related GLModes contained in this const StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.38">setTextureAttribute</A></B>(unsigned int unit, <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::OverrideValue value=StateAttribute::OFF)
|
|
<DD><I>set this StateSet to contain specified attribute and override flag</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.39">setTextureAttributeAndModes</A></B>(unsigned int unit, <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value=StateAttribute::ON)
|
|
<DD><I>set this StateSet to contain specified attribute and set the associated GLMode's to specified value</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.40">setTextureAttributeToInherit</A></B>(unsigned int unit, StateAttribute::Type type)
|
|
<DD><I>set this StateSet to inherit specified attribute type from parents.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateAttribute.html">StateAttribute</A>* <B><A HREF="#DOC.2.165.41">getTextureAttribute</A></B>(unsigned int unit, StateAttribute::Type type)
|
|
<DD><I>get specified Texture related StateAttribute for specified type.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="StateAttribute.html">StateAttribute</A>* <B><A HREF="#DOC.2.165.42">getTextureAttribute</A></B>(unsigned int unit, StateAttribute::Type type) const
|
|
<DD><I>get specified Texture related const StateAttribute for specified type.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>* <B><A HREF="#DOC.2.165.43">getTextureAttributePair</A></B>(unsigned int unit, StateAttribute::Type type) const
|
|
<DD><I>get specified Texture related RefAttributePair for specified type.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html#DOC.2.165.37">TextureAttributeList</A>& <B><A HREF="#DOC.2.165.44">getTextureAttributeList</A></B>()
|
|
<DD><I>return the list of all Texture related StateAttributes contained in this StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="StateSet.html#DOC.2.165.37">TextureAttributeList</A>& <B><A HREF="#DOC.2.165.45">getTextureAttributeList</A></B>() const
|
|
<DD><I>return the const list of all Texture related StateAttributes contained in this const StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.46">setAssociatedModes</A></B>(const <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.47">setAssociatedTextureModes</A></B>(unsigned int unit, const <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.49">setRenderingHint</A></B>(int hint)
|
|
<DD><I>set the RenderingHint of the StateSet.</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline int <B><A HREF="#DOC.2.165.50">getRenderingHint</A></B>() const
|
|
<DD><I>get the RenderingHint of the StateSet</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.52">setRenderBinDetails</A></B>(int binNum, const std::string& binName, <!1><A HREF="StateSet.html#DOC.2.165.51">RenderBinMode</A> mode=<!1><A HREF="StateSet.html#DOC.2.165.51.2">USE_RENDERBIN_DETAILS</A>)
|
|
<DD><I>set the render bin details</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.53">setRenderBinToInherit</A></B>()
|
|
<DD><I>set the render bin details to inherit</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html#DOC.2.165.51">RenderBinMode</A> <B><A HREF="#DOC.2.165.54">getRenderBinMode</A></B>() const
|
|
<DD><I>get the render bin mode</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.165.55">useRenderBinDetails</A></B>() const
|
|
<DD><I>get whether the render bin details are set and should be used</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline int <B><A HREF="#DOC.2.165.56">getBinNumber</A></B>() const
|
|
<DD><I>get the render bin number</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const std::string& <B><A HREF="#DOC.2.165.57">getBinName</A></B>() const
|
|
<DD><I>get the render bin name</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.58">compile</A></B>(<!1><A HREF="State.html">State</A>& state) const
|
|
<DD><I>call compile on all StateAttributes contained within this StateSet</I>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Public Members</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map<StateAttribute::GLMode,StateAttribute::GLModeValue> <B><A HREF="#DOC.2.165.15">ModeList</A></B>
|
|
<DD><I>a container to map GLModes to their respective GLModeValues</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::pair<<!1><A HREF="ref_ptr.html">ref_ptr</A><<!1><A HREF="StateAttribute.html">StateAttribute</A>>,StateAttribute::OverrideValue> <B><A HREF="#DOC.2.165.21">RefAttributePair</A></B>
|
|
<DD><I>simple pairing between an attribute and its override flag</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map<StateAttribute::Type,<!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>> <B><A HREF="#DOC.2.165.22">AttributeList</A></B>
|
|
<DD><I>a container to map StateAttribyte::Types to their respective RefAttributePair</I>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector<<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>> <B><A HREF="#DOC.2.165.31">TextureModeList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::vector<<!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>> <B><A HREF="#DOC.2.165.37">TextureAttributeList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.165.48">RenderingHint</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.165.51">RenderBinMode</A></B>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Fields</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A> <B><A HREF="#DOC.2.165.61">_modeList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A> <B><A HREF="#DOC.2.165.62">_attributeList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateSet.html#DOC.2.165.31">TextureModeList</A> <B><A HREF="#DOC.2.165.63">_textureModeList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateSet.html#DOC.2.165.37">TextureAttributeList</A> <B><A HREF="#DOC.2.165.64">_textureAttributeList</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.165.78">_renderingHint</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateSet.html#DOC.2.165.51">RenderBinMode</A> <B><A HREF="#DOC.2.165.79">_binMode</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.165.80">_binNum</A></B>
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>std::string <B><A HREF="#DOC.2.165.81">_binName</A></B>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Methods</H3><DD><DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.165.59">~StateSet</A></B>()
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateSet.html">StateSet</A>& <B><A HREF="#DOC.2.165.60">operator = </A></B>(const <!1><A HREF="StateSet.html">StateSet</A>&)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& <B><A HREF="#DOC.2.165.65">getOrCreateTextureModeList</A></B>(unsigned int unit)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& <B><A HREF="#DOC.2.165.66">getOrCreateTextureAttributeList</A></B>(unsigned int unit)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.165.67">compareModes</A></B>(const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& lhs, const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& rhs)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.165.68">compareAttributePtrs</A></B>(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& lhs, const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& rhs)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.165.69">compareAttributeContents</A></B>(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& lhs, const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& rhs)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.70">setMode</A></B>(<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, StateAttribute::GLMode mode, StateAttribute::GLModeValue value)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.71">setModeToInherit</A></B>(<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, StateAttribute::GLMode mode)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>StateAttribute::GLModeValue <B><A HREF="#DOC.2.165.72">getMode</A></B>(const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, StateAttribute::GLMode mode) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.73">setAssociatedModes</A></B>(<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, const <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.165.74">setAttribute</A></B>(<!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, const StateAttribute::OverrideValue value=StateAttribute::OFF)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="StateAttribute.html">StateAttribute</A>* <B><A HREF="#DOC.2.165.75">getAttribute</A></B>(<!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, const StateAttribute::Type type)
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="StateAttribute.html">StateAttribute</A>* <B><A HREF="#DOC.2.165.76">getAttribute</A></B>(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, const StateAttribute::Type type) const
|
|
<DT>
|
|
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>const <!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>* <B><A HREF="#DOC.2.165.77">getAttributePair</A></B>(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, const StateAttribute::Type type) const
|
|
</DL></P>
|
|
|
|
</DL>
|
|
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>setDataVariance</B>(<!1><A HREF="Object.html#DOC.2.106.8">DataVariance</A> dv)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Object.html#DOC.2.106.8">DataVariance</A> <B>getDataVariance</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>setUserData</B>(<!1><A HREF="Referenced.html">Referenced</A>* obj)
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline <!1><A HREF="Referenced.html">Referenced</A>* <B>getUserData</B>()
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline const <!1><A HREF="Referenced.html">Referenced</A>* <B>getUserData</B>() const
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Public Members</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>enum <B>DataVariance</B>
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Fields</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="Object.html#DOC.2.106.8">DataVariance</A> <B>_dataVariance</B>
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="ref_ptr.html">ref_ptr</A><<!1><A HREF="Referenced.html">Referenced</A>> <B>_userData</B>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
<HR><H3>Inherited from <A HREF="Referenced.html">Referenced</A>:</H3>
|
|
<DL>
|
|
<P><DL>
|
|
<DT><H3>Public Methods</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>ref</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline void <B>unref_nodelete</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline int <B>referenceCount</B>() const
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline static int <B>createdCount</B>()
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>inline static int <B>deletedCount</B>()
|
|
</DL></P>
|
|
|
|
<P><DL>
|
|
<DT><H3>Protected Fields</H3><DD><DT>
|
|
<IMG ALT="o" SRC=icon2.gif>mutable int <B>_refCount</B>
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>static int <B>_createdCount</B>
|
|
<DT>
|
|
<IMG ALT="o" SRC=icon2.gif>static int <B>_deletedCount</B>
|
|
</DL></P>
|
|
|
|
</DL>
|
|
|
|
<A NAME="DOC.DOCU"></A>
|
|
<HR>
|
|
<H2>Documentation</H2>
|
|
<BLOCKQUOTE>
|
|
Encapsulates OpenGL state modes and attributes.
|
|
Used to specific textures etc of osg::Drawable's which hold references
|
|
to a single osg::StateSet. StateSet can be shared between Drawable's
|
|
and is recommend if possible as it minimize expensive state changes
|
|
in the graphics pipeline.</BLOCKQUOTE>
|
|
<DL>
|
|
|
|
<A NAME="StateSet"></A>
|
|
<A NAME="DOC.2.165.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> StateSet()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="StateSet"></A>
|
|
<A NAME="DOC.2.165.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> StateSet(const <!1><A HREF="StateSet.html#DOC.2.165.2">StateSet</A>&, const <!1><A HREF="CopyOp.html">CopyOp</A>& copyop=CopyOp::SHALLOW_COPY)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="cloneType"></A>
|
|
<A NAME="DOC.2.165.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual <!1><A HREF="Object.html">Object</A>* cloneType() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="clone"></A>
|
|
<A NAME="DOC.2.165.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual <!1><A HREF="Object.html">Object</A>* clone(const <!1><A HREF="CopyOp.html">CopyOp</A>& copyop) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="isSameKindAs"></A>
|
|
<A NAME="DOC.2.165.5"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool isSameKindAs(const <!1><A HREF="Object.html">Object</A>* obj) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="libraryName"></A>
|
|
<A NAME="DOC.2.165.6"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* libraryName() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="className"></A>
|
|
<A NAME="DOC.2.165.7"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual const char* className() const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compare"></A>
|
|
<A NAME="DOC.2.165.8"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int compare(const <!1><A HREF="StateSet.html">StateSet</A>& rhs, bool <!1><A HREF="StateSet.html#DOC.2.165.69">compareAttributeContents</A>=false) const </B></TT>
|
|
<DD>return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator < "></A>
|
|
<A NAME="DOC.2.165.9"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool operator < (const <!1><A HREF="StateSet.html">StateSet</A>& rhs) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator == "></A>
|
|
<A NAME="DOC.2.165.10"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool operator == (const <!1><A HREF="StateSet.html">StateSet</A>& rhs) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator != "></A>
|
|
<A NAME="DOC.2.165.11"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool operator != (const <!1><A HREF="StateSet.html">StateSet</A>& rhs) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setGlobalDefaults"></A>
|
|
<A NAME="DOC.2.165.12"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setGlobalDefaults()</B></TT>
|
|
<DD>set all the modes to on or off so that it defines a
|
|
complete state, typically used for a default global state
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAllToInherit"></A>
|
|
<A NAME="DOC.2.165.13"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAllToInherit()</B></TT>
|
|
<DD>set all the modes to inherit, typically used to signify
|
|
nodes which inherit all of their modes for the global state
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="merge"></A>
|
|
<A NAME="DOC.2.165.14"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void merge(const <!1><A HREF="StateSet.html">StateSet</A>& rhs)</B></TT>
|
|
<DD>merge this stateset with stateset rhs, this overrides
|
|
the rhs if OVERRIDE is specified, otherwise rhs takes precedence
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="ModeList"></A>
|
|
<A NAME="DOC.2.165.15"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map<StateAttribute::GLMode,StateAttribute::GLModeValue> ModeList</B></TT>
|
|
<DD>a container to map GLModes to their respective GLModeValues
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setMode"></A>
|
|
<A NAME="DOC.2.165.16"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMode(StateAttribute::GLMode mode, StateAttribute::GLModeValue value)</B></TT>
|
|
<DD>set this StateSet to contain specified GLMode and value
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setModeToInherit"></A>
|
|
<A NAME="DOC.2.165.17"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setModeToInherit(StateAttribute::GLMode mode)</B></TT>
|
|
<DD>set this StateSet to inherit specified GLMode type from parents.
|
|
has the effect of deleting any GlMode of specified type from StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getMode"></A>
|
|
<A NAME="DOC.2.165.18"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>StateAttribute::GLModeValue getMode(StateAttribute::GLMode mode) const </B></TT>
|
|
<DD>get specified GLModeValue for specified GLMode.
|
|
returns INHERIT if no GLModeValue is contained within StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getModeList"></A>
|
|
<A NAME="DOC.2.165.19"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& getModeList()</B></TT>
|
|
<DD>return the list of all GLModes contained in this StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getModeList"></A>
|
|
<A NAME="DOC.2.165.20"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& getModeList() const </B></TT>
|
|
<DD>return the const list of all GLModes contained in this const StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="RefAttributePair"></A>
|
|
<A NAME="DOC.2.165.21"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::pair<<!1><A HREF="ref_ptr.html">ref_ptr</A><<!1><A HREF="StateAttribute.html">StateAttribute</A>>,StateAttribute::OverrideValue> RefAttributePair</B></TT>
|
|
<DD>simple pairing between an attribute and its override flag
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="AttributeList"></A>
|
|
<A NAME="DOC.2.165.22"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map<StateAttribute::Type,<!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>> AttributeList</B></TT>
|
|
<DD>a container to map StateAttribyte::Types to their respective RefAttributePair
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAttribute"></A>
|
|
<A NAME="DOC.2.165.23"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAttribute(<!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::OverrideValue value=StateAttribute::OFF)</B></TT>
|
|
<DD>set this StateSet to contain specified attribute and override flag
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAttributeAndModes"></A>
|
|
<A NAME="DOC.2.165.24"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAttributeAndModes(<!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value=StateAttribute::ON)</B></TT>
|
|
<DD>set this StateSet to contain specified attribute and set the associated GLMode's to specified value
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAttributeToInherit"></A>
|
|
<A NAME="DOC.2.165.25"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAttributeToInherit(StateAttribute::Type type)</B></TT>
|
|
<DD>set this StateSet to inherit specified attribute type from parents.
|
|
has the effect of deleting any state attributes of specified type from StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttribute"></A>
|
|
<A NAME="DOC.2.165.26"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateAttribute.html">StateAttribute</A>* getAttribute(StateAttribute::Type type)</B></TT>
|
|
<DD>get specified StateAttribute for specified type.
|
|
returns NULL if no type is contained within StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttribute"></A>
|
|
<A NAME="DOC.2.165.27"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="StateAttribute.html">StateAttribute</A>* getAttribute(StateAttribute::Type type) const </B></TT>
|
|
<DD>get specified const StateAttribute for specified type.
|
|
returns NULL if no type is contained within const StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttributePair"></A>
|
|
<A NAME="DOC.2.165.28"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>* getAttributePair(StateAttribute::Type type) const </B></TT>
|
|
<DD>get specified RefAttributePair for specified type.
|
|
returns NULL if no type is contained within StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttributeList"></A>
|
|
<A NAME="DOC.2.165.29"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& getAttributeList()</B></TT>
|
|
<DD>return the list of all StateAttributes contained in this StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttributeList"></A>
|
|
<A NAME="DOC.2.165.30"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& getAttributeList() const </B></TT>
|
|
<DD>return the const list of all StateAttributes contained in this const StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="TextureModeList"></A>
|
|
<A NAME="DOC.2.165.31"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector<<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>> TextureModeList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setTextureMode"></A>
|
|
<A NAME="DOC.2.165.32"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setTextureMode(unsigned int unit, StateAttribute::GLMode mode, StateAttribute::GLModeValue value)</B></TT>
|
|
<DD>set this StateSet to contain specified GLMode and value
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setTextureModeToInherit"></A>
|
|
<A NAME="DOC.2.165.33"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setTextureModeToInherit(unsigned int unit, StateAttribute::GLMode mode)</B></TT>
|
|
<DD>set this StateSet to inherit specified GLMode type from parents.
|
|
has the effect of deleting any GlMode of specified type from StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureMode"></A>
|
|
<A NAME="DOC.2.165.34"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>StateAttribute::GLModeValue getTextureMode(unsigned int unit, StateAttribute::GLMode mode) const </B></TT>
|
|
<DD>get specified GLModeValue for specified GLMode.
|
|
returns INHERIT if no GLModeValue is contained within StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureModeList"></A>
|
|
<A NAME="DOC.2.165.35"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html#DOC.2.165.31">TextureModeList</A>& getTextureModeList()</B></TT>
|
|
<DD>return the list of all Texture related GLModes contained in this StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureModeList"></A>
|
|
<A NAME="DOC.2.165.36"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="StateSet.html#DOC.2.165.31">TextureModeList</A>& getTextureModeList() const </B></TT>
|
|
<DD>return the const list of all Texture related GLModes contained in this const StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="TextureAttributeList"></A>
|
|
<A NAME="DOC.2.165.37"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::vector<<!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>> TextureAttributeList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setTextureAttribute"></A>
|
|
<A NAME="DOC.2.165.38"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setTextureAttribute(unsigned int unit, <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::OverrideValue value=StateAttribute::OFF)</B></TT>
|
|
<DD>set this StateSet to contain specified attribute and override flag
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setTextureAttributeAndModes"></A>
|
|
<A NAME="DOC.2.165.39"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setTextureAttributeAndModes(unsigned int unit, <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value=StateAttribute::ON)</B></TT>
|
|
<DD>set this StateSet to contain specified attribute and set the associated GLMode's to specified value
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setTextureAttributeToInherit"></A>
|
|
<A NAME="DOC.2.165.40"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setTextureAttributeToInherit(unsigned int unit, StateAttribute::Type type)</B></TT>
|
|
<DD>set this StateSet to inherit specified attribute type from parents.
|
|
has the effect of deleting any state attributes of specified type from StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureAttribute"></A>
|
|
<A NAME="DOC.2.165.41"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateAttribute.html">StateAttribute</A>* getTextureAttribute(unsigned int unit, StateAttribute::Type type)</B></TT>
|
|
<DD>get specified Texture related StateAttribute for specified type.
|
|
returns NULL if no type is contained within StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureAttribute"></A>
|
|
<A NAME="DOC.2.165.42"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="StateAttribute.html">StateAttribute</A>* getTextureAttribute(unsigned int unit, StateAttribute::Type type) const </B></TT>
|
|
<DD>get specified Texture related const StateAttribute for specified type.
|
|
returns NULL if no type is contained within const StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureAttributePair"></A>
|
|
<A NAME="DOC.2.165.43"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>* getTextureAttributePair(unsigned int unit, StateAttribute::Type type) const </B></TT>
|
|
<DD>get specified Texture related RefAttributePair for specified type.
|
|
returns NULL if no type is contained within StateSet.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureAttributeList"></A>
|
|
<A NAME="DOC.2.165.44"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html#DOC.2.165.37">TextureAttributeList</A>& getTextureAttributeList()</B></TT>
|
|
<DD>return the list of all Texture related StateAttributes contained in this StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getTextureAttributeList"></A>
|
|
<A NAME="DOC.2.165.45"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="StateSet.html#DOC.2.165.37">TextureAttributeList</A>& getTextureAttributeList() const </B></TT>
|
|
<DD>return the const list of all Texture related StateAttributes contained in this const StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAssociatedModes"></A>
|
|
<A NAME="DOC.2.165.46"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAssociatedModes(const <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAssociatedTextureModes"></A>
|
|
<A NAME="DOC.2.165.47"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAssociatedTextureModes(unsigned int unit, const <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="RenderingHint"></A>
|
|
<A NAME="DOC.2.165.48"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum RenderingHint</B></TT>
|
|
<DL><DT><DD></DL><P><DL>
|
|
|
|
<A NAME="DEFAULT_BIN"></A>
|
|
<A NAME="DOC.2.165.48.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> DEFAULT_BIN</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="OPAQUE_BIN"></A>
|
|
<A NAME="DOC.2.165.48.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> OPAQUE_BIN</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="TRANSPARENT_BIN"></A>
|
|
<A NAME="DOC.2.165.48.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> TRANSPARENT_BIN</B></TT>
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<A NAME="setRenderingHint"></A>
|
|
<A NAME="DOC.2.165.49"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRenderingHint(int hint)</B></TT>
|
|
<DD>set the RenderingHint of the StateSet.
|
|
RenderingHint is used by osgUtil::Renderer to determine which
|
|
draw bin to drop associated osg::Drawables in. For opaque
|
|
objects OPAQUE_BIN would typical used, which TRANSPARENT_BIN
|
|
should be used for objects which need to be depth sorted.
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getRenderingHint"></A>
|
|
<A NAME="DOC.2.165.50"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline int getRenderingHint() const </B></TT>
|
|
<DD>get the RenderingHint of the StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="RenderBinMode"></A>
|
|
<A NAME="DOC.2.165.51"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum RenderBinMode</B></TT>
|
|
<DL><DT><DD></DL><P><DL>
|
|
|
|
<A NAME="INHERIT_RENDERBIN_DETAILS"></A>
|
|
<A NAME="DOC.2.165.51.1"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> INHERIT_RENDERBIN_DETAILS</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="USE_RENDERBIN_DETAILS"></A>
|
|
<A NAME="DOC.2.165.51.2"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> USE_RENDERBIN_DETAILS</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="OVERRIDE_RENDERBIN_DETAILS"></A>
|
|
<A NAME="DOC.2.165.51.3"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> OVERRIDE_RENDERBIN_DETAILS</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="ENCLOSE_RENDERBIN_DETAILS"></A>
|
|
<A NAME="DOC.2.165.51.4"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ENCLOSE_RENDERBIN_DETAILS</B></TT>
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<A NAME="setRenderBinDetails"></A>
|
|
<A NAME="DOC.2.165.52"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRenderBinDetails(int binNum, const std::string& binName, <!1><A HREF="StateSet.html#DOC.2.165.51">RenderBinMode</A> mode=<!1><A HREF="StateSet.html#DOC.2.165.51.2">USE_RENDERBIN_DETAILS</A>)</B></TT>
|
|
<DD>set the render bin details
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setRenderBinToInherit"></A>
|
|
<A NAME="DOC.2.165.53"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setRenderBinToInherit()</B></TT>
|
|
<DD>set the render bin details to inherit
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getRenderBinMode"></A>
|
|
<A NAME="DOC.2.165.54"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html#DOC.2.165.51">RenderBinMode</A> getRenderBinMode() const </B></TT>
|
|
<DD>get the render bin mode
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="useRenderBinDetails"></A>
|
|
<A NAME="DOC.2.165.55"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool useRenderBinDetails() const </B></TT>
|
|
<DD>get whether the render bin details are set and should be used
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getBinNumber"></A>
|
|
<A NAME="DOC.2.165.56"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline int getBinNumber() const </B></TT>
|
|
<DD>get the render bin number
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getBinName"></A>
|
|
<A NAME="DOC.2.165.57"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const std::string& getBinName() const </B></TT>
|
|
<DD>get the render bin name
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compile"></A>
|
|
<A NAME="DOC.2.165.58"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void compile(<!1><A HREF="State.html">State</A>& state) const </B></TT>
|
|
<DD>call compile on all StateAttributes contained within this StateSet
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="~StateSet"></A>
|
|
<A NAME="DOC.2.165.59"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~StateSet()</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="operator = "></A>
|
|
<A NAME="DOC.2.165.60"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateSet.html">StateSet</A>& operator = (const <!1><A HREF="StateSet.html">StateSet</A>&)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_modeList"></A>
|
|
<A NAME="DOC.2.165.61"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A> _modeList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_attributeList"></A>
|
|
<A NAME="DOC.2.165.62"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A> _attributeList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_textureModeList"></A>
|
|
<A NAME="DOC.2.165.63"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateSet.html#DOC.2.165.31">TextureModeList</A> _textureModeList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_textureAttributeList"></A>
|
|
<A NAME="DOC.2.165.64"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateSet.html#DOC.2.165.37">TextureAttributeList</A> _textureAttributeList</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getOrCreateTextureModeList"></A>
|
|
<A NAME="DOC.2.165.65"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& getOrCreateTextureModeList(unsigned int unit)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getOrCreateTextureAttributeList"></A>
|
|
<A NAME="DOC.2.165.66"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& getOrCreateTextureAttributeList(unsigned int unit)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compareModes"></A>
|
|
<A NAME="DOC.2.165.67"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int compareModes(const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& lhs, const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& rhs)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compareAttributePtrs"></A>
|
|
<A NAME="DOC.2.165.68"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int compareAttributePtrs(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& lhs, const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& rhs)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="compareAttributeContents"></A>
|
|
<A NAME="DOC.2.165.69"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int compareAttributeContents(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& lhs, const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& rhs)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setMode"></A>
|
|
<A NAME="DOC.2.165.70"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setMode(<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, StateAttribute::GLMode mode, StateAttribute::GLModeValue value)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setModeToInherit"></A>
|
|
<A NAME="DOC.2.165.71"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setModeToInherit(<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, StateAttribute::GLMode mode)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getMode"></A>
|
|
<A NAME="DOC.2.165.72"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>StateAttribute::GLModeValue getMode(const <!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, StateAttribute::GLMode mode) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAssociatedModes"></A>
|
|
<A NAME="DOC.2.165.73"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAssociatedModes(<!1><A HREF="StateSet.html#DOC.2.165.15">ModeList</A>& modeList, const <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, StateAttribute::GLModeValue value)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="setAttribute"></A>
|
|
<A NAME="DOC.2.165.74"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void setAttribute(<!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, <!1><A HREF="StateAttribute.html">StateAttribute</A>* attribute, const StateAttribute::OverrideValue value=StateAttribute::OFF)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttribute"></A>
|
|
<A NAME="DOC.2.165.75"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateAttribute.html">StateAttribute</A>* getAttribute(<!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, const StateAttribute::Type type)</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttribute"></A>
|
|
<A NAME="DOC.2.165.76"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="StateAttribute.html">StateAttribute</A>* getAttribute(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, const StateAttribute::Type type) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="getAttributePair"></A>
|
|
<A NAME="DOC.2.165.77"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>const <!1><A HREF="StateSet.html#DOC.2.165.21">RefAttributePair</A>* getAttributePair(const <!1><A HREF="StateSet.html#DOC.2.165.22">AttributeList</A>& attributeList, const StateAttribute::Type type) const </B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_renderingHint"></A>
|
|
<A NAME="DOC.2.165.78"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _renderingHint</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_binMode"></A>
|
|
<A NAME="DOC.2.165.79"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="StateSet.html#DOC.2.165.51">RenderBinMode</A> _binMode</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_binNum"></A>
|
|
<A NAME="DOC.2.165.80"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _binNum</B></TT>
|
|
<DL><DT><DD></DL><P>
|
|
<A NAME="_binName"></A>
|
|
<A NAME="DOC.2.165.81"></A>
|
|
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>std::string _binName</B></TT>
|
|
<DL><DT><DD></DL><P></DL>
|
|
|
|
<HR><DL><DT><B>This class has no child classes.</B></DL>
|
|
|
|
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
|
|
<BR>
|
|
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
|
|
</BODY>
|
|
</HTML>
|