|
Public Types |
typedef std::pair< const StateAttribute *,
StateAttribute::OverrideValue > | AttributePair |
| typedef std::vector< AttributePair > | AttributeVec |
| typedef std::vector< StateAttribute::GLModeValue > | ValueVec |
Public Member Functions |
| | State () |
| void | pushStateSet (const StateSet *dstate) |
| void | popStateSet () |
| void | popAllStateSets () |
| void | captureCurrentState (StateSet &stateset) const |
| void | reset () |
| const Viewport * | getCurrentViewport () const |
| void | setInitialViewMatrix (const osg::RefMatrix *matrix) |
| const osg::Matrix & | getInitialViewMatrix () const |
| const osg::Matrix & | getInitialInverseViewMatrix () const |
| void | applyProjectionMatrix (const osg::RefMatrix *matrix) |
| const osg::Matrix & | getProjectionMatrix () const |
| void | applyModelViewMatrix (const osg::RefMatrix *matrix) |
| const osg::Matrix & | getModelViewMatrix () const |
| Polytope | getViewFrustum () const |
| void | apply (const StateSet *dstate) |
| void | apply () |
| void | setGlobalDefaultModeValue (StateAttribute::GLMode mode, bool enabled) |
| bool | getGlobalDefaultModeValue (StateAttribute::GLMode mode) |
| bool | applyMode (StateAttribute::GLMode mode, bool enabled) |
| void | setGlobalDefaultTextureModeValue (unsigned int unit, StateAttribute::GLMode mode, bool enabled) |
| bool | getGlobalDefaultTextureModeValue (unsigned int unit, StateAttribute::GLMode mode) |
| bool | applyTextureMode (unsigned int unit, StateAttribute::GLMode mode, bool enabled) |
| void | setGlobalDefaultAttribute (const StateAttribute *attribute) |
| const StateAttribute * | getGlobalDefaultAttribute (StateAttribute::Type type, unsigned int member=0) |
| bool | applyAttribute (const StateAttribute *attribute) |
| void | setGlobalDefaultTextureAttribute (unsigned int unit, const StateAttribute *attribute) |
| const StateAttribute * | getGlobalDefaultTextureAttribute (unsigned int unit, StateAttribute::Type type, unsigned int member=0) |
| bool | applyTextureAttribute (unsigned int unit, const StateAttribute *attribute) |
| void | haveAppliedMode (StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
| void | haveAppliedMode (StateAttribute::GLMode mode) |
| void | haveAppliedAttribute (const StateAttribute *attribute) |
| void | haveAppliedAttribute (StateAttribute::Type type, unsigned int member=0) |
| bool | getLastAppliedMode (StateAttribute::GLMode mode) const |
| const StateAttribute * | getLastAppliedAttribute (StateAttribute::Type type, unsigned int member=0) const |
| void | haveAppliedTextureMode (unsigned int unit, StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
| void | haveAppliedTextureMode (unsigned int unit, StateAttribute::GLMode mode) |
| void | haveAppliedTextureAttribute (unsigned int unit, const StateAttribute *attribute) |
| void | haveAppliedTextureAttribute (unsigned int unit, StateAttribute::Type type, unsigned int member=0) |
| bool | getLastAppliedTextureMode (unsigned int unit, StateAttribute::GLMode mode) const |
| const StateAttribute * | getLastAppliedTextureAttribute (unsigned int unit, StateAttribute::Type type, unsigned int member=0) const |
| void | dirtyAllModes () |
| void | dirtyAllAttributes () |
| void | disableAllVertexArrays () |
| void | dirtyAllVertexArrays () |
| void | setInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer) |
| void | setVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) |
| void | disableVertexPointer () |
| void | dirtyVertexPointer () |
| void | setNormalPointer (GLenum type, GLsizei stride, const GLvoid *ptr) |
| void | disableNormalPointer () |
| void | dirtyNormalPointer () |
| void | setColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) |
| void | disableColorPointer () |
| void | dirtyColorPointer () |
| bool | isSecondaryColorSupported () const |
| void | setSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) |
| void | disableSecondaryColorPointer () |
| void | dirtySecondaryColorPointer () |
| void | setIndexPointer (GLenum type, GLsizei stride, const GLvoid *ptr) |
| void | disableIndexPointer () |
| void | dirtyIndexPointer () |
| bool | isFogCoordSupported () const |
| void | setFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *ptr) |
| void | disableFogCoordPointer () |
| void | dirtyFogCoordPointer () |
| void | setTexCoordPointer (unsigned int unit, GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) |
| void | disableTexCoordPointer (unsigned int unit) |
| void | dirtyTexCoordPointer (unsigned int unit) |
| void | disableTexCoordPointersAboveAndIncluding (unsigned int unit) |
| void | dirtyTexCoordPointersAboveAndIncluding (unsigned int unit) |
| bool | setClientActiveTextureUnit (unsigned int unit) |
| bool | setActiveTextureUnit (unsigned int unit) |
| void | setVertexAttribPointer (unsigned int index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *ptr) |
| void | disableVertexAttribPointer (unsigned int index) |
| void | disableVertexAttribPointersAboveAndIncluding (unsigned int index) |
| void | dirtyVertexAttribPointersAboveAndIncluding (unsigned int index) |
| bool | isVertexBufferObjectSupported () const |
| void | setContextID (unsigned int contextID) |
| unsigned int | getContextID () const |
| void | setFrameStamp (FrameStamp *fs) |
| const FrameStamp * | getFrameStamp () const |
| void | setDisplaySettings (DisplaySettings *vs) |
| const DisplaySettings * | getDisplaySettings () const |
| void | setAbortRenderingPtr (bool *abortPtr) |
| bool | getAbortRendering () const |
| void | setReportGLErrors (bool flag) |
| bool | getReportGLErrors () const |
| bool | checkGLErrors (const char *str) const |
| bool | checkGLErrors (StateAttribute::GLMode mode) const |
| bool | checkGLErrors (const StateAttribute *attribute) const |
Protected Types |
typedef std::map< StateAttribute::GLMode,
ModeStack > | ModeMap |
| typedef std::vector< ModeMap > | TextureModeMapList |
typedef std::map< StateAttribute::TypeMemberPair,
AttributeStack > | AttributeMap |
| typedef std::vector< AttributeMap > | TextureAttributeMapList |
typedef std::vector< const
StateSet * > | StateSetStack |
typedef std::vector< ref_ptr<
const Matrix > > | MatrixStack |
| typedef std::vector< EnabledArrayPair > | EnabledTexCoordArrayList |
| typedef std::vector< EnabledArrayPair > | EnabledVertexAttribArrayList |
Protected Member Functions |
| virtual | ~State () |
| bool | applyMode (StateAttribute::GLMode mode, bool enabled, ModeStack &ms) |
| bool | applyAttribute (const StateAttribute *attribute, AttributeStack &as) |
| bool | applyGlobalDefaultAttribute (AttributeStack &as) |
| ModeMap & | getOrCreateTextureModeMap (unsigned int unit) |
| AttributeMap & | getOrCreateTextureAttributeMap (unsigned int unit) |
| void | pushModeList (ModeMap &modeMap, const StateSet::ModeList &modeList) |
| void | pushAttributeList (AttributeMap &attributeMap, const StateSet::AttributeList &attributeList) |
| void | popModeList (ModeMap &modeMap, const StateSet::ModeList &modeList) |
| void | popAttributeList (AttributeMap &attributeMap, const StateSet::AttributeList &attributeList) |
| void | applyModeList (ModeMap &modeMap, const StateSet::ModeList &modeList) |
| void | applyAttributeList (AttributeMap &attributeMap, const StateSet::AttributeList &attributeList) |
| void | applyModeMap (ModeMap &modeMap) |
| void | applyAttributeMap (AttributeMap &attributeMap) |
| void | haveAppliedMode (ModeMap &modeMap, StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
| void | haveAppliedMode (ModeMap &modeMap, StateAttribute::GLMode mode) |
| void | haveAppliedAttribute (AttributeMap &attributeMap, const StateAttribute *attribute) |
| void | haveAppliedAttribute (AttributeMap &attributeMap, StateAttribute::Type type, unsigned int member) |
| bool | getLastAppliedMode (const ModeMap &modeMap, StateAttribute::GLMode mode) const |
| const StateAttribute * | getLastAppliedAttribute (const AttributeMap &attributeMap, StateAttribute::Type type, unsigned int member) const |
| bool | computeSecondaryColorSupported () const |
| bool | computeFogCoordSupported () const |
| bool | computeVertexBufferObjectSupported () const |
Protected Attributes |
| unsigned int | _contextID |
| ref_ptr< FrameStamp > | _frameStamp |
| ref_ptr< const RefMatrix > | _identity |
| ref_ptr< const RefMatrix > | _initialViewMatrix |
| ref_ptr< const RefMatrix > | _projection |
| ref_ptr< const RefMatrix > | _modelView |
| Matrix | _initialInverseViewMatrix |
| ref_ptr< DisplaySettings > | _displaySettings |
| bool * | _abortRenderingPtr |
| bool | _reportGLErrors |
| ModeMap | _modeMap |
| AttributeMap | _attributeMap |
| TextureModeMapList | _textureModeMapList |
| TextureAttributeMapList | _textureAttributeMapList |
| StateSetStack | _drawStateStack |
| EnabledArrayPair | _vertexArray |
| EnabledArrayPair | _normalArray |
| EnabledArrayPair | _colorArray |
| EnabledArrayPair | _secondaryColorArray |
| EnabledArrayPair | _indexArray |
| EnabledArrayPair | _fogArray |
| EnabledTexCoordArrayList | _texCoordArrayList |
| EnabledVertexAttribArrayList | _vertexAttribArrayList |
| unsigned int | _currentActiveTextureUnit |
| unsigned int | _currentClientActiveTextureUnit |
| bool | _isSecondaryColorSupportResolved |
| bool | _isSecondaryColorSupported |
| bool | _isFogCoordSupportResolved |
| bool | _isFogCoordSupported |
| bool | _isVertexBufferObjectSupportResolved |
| bool | _isVertexBufferObjectSupported |
Classes |
| struct | AttributeStack |
| struct | EnabledArrayPair |
| struct | ModeStack |