|
Public Types |
typedef std::map< StateAttribute::GLMode,
StateAttribute::GLModeValue > | ModeList |
typedef std::pair< ref_ptr<
StateAttribute >, StateAttribute::OverrideValue > | RefAttributePair |
typedef std::map< StateAttribute::TypeMemberPair,
RefAttributePair > | AttributeList |
typedef std::vector< ModeList > | TextureModeList |
typedef std::vector< AttributeList > | TextureAttributeList |
enum | RenderingHint { DEFAULT_BIN = 0,
OPAQUE_BIN = 1,
TRANSPARENT_BIN = 2
} |
enum | RenderBinMode { INHERIT_RENDERBIN_DETAILS,
USE_RENDERBIN_DETAILS,
OVERRIDE_RENDERBIN_DETAILS,
ENCLOSE_RENDERBIN_DETAILS
} |
Public Member Functions |
| 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 |
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 |
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 |
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 |
TextureModeList & | getTextureModeList () |
const TextureModeList & | getTextureModeList () 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 |
TextureAttributeList & | getTextureAttributeList () |
const TextureAttributeList & | getTextureAttributeList () const |
void | setAssociatedModes (const StateAttribute *attribute, StateAttribute::GLModeValue value) |
void | setAssociatedTextureModes (unsigned int unit, const StateAttribute *attribute, StateAttribute::GLModeValue value) |
void | setRenderingHint (int hint) |
int | getRenderingHint () const |
void | setRenderBinDetails (int binNum, const std::string &binName, RenderBinMode mode=USE_RENDERBIN_DETAILS) |
void | setRenderBinToInherit () |
RenderBinMode | getRenderBinMode () const |
bool | useRenderBinDetails () const |
int | getBinNumber () const |
const std::string & | getBinName () const |
void | compileGLObjects (State &state) const |
virtual void | releaseGLObjects (State *state=0) const |
Protected Member Functions |
virtual | ~StateSet () |
StateSet & | operator= (const StateSet &) |
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 |
Protected Attributes |
ModeList | _modeList |
AttributeList | _attributeList |
TextureModeList | _textureModeList |
TextureAttributeList | _textureAttributeList |
int | _renderingHint |
RenderBinMode | _binMode |
int | _binNum |
std::string | _binName |