OpenSceneGraph
Public Member Functions | Public Attributes | List of all members
osg::State::ApplyModeProxy Struct Reference

Proxy helper class for applyig a model in a local scope, with the preivous value being resotred automatically on leaving the scope that proxy was created. More...

Public Member Functions

 ApplyModeProxy (osg::State &state, GLenum mode, bool value)
 
 ~ApplyModeProxy ()
 

Public Attributes

osg::State_state
 
GLenum _mode
 
bool _previous_value
 
bool _need_to_apply_value
 

Detailed Description

Proxy helper class for applyig a model in a local scope, with the preivous value being resotred automatically on leaving the scope that proxy was created.

Constructor & Destructor Documentation

◆ ApplyModeProxy()

osg::State::ApplyModeProxy::ApplyModeProxy ( osg::State state,
GLenum  mode,
bool  value 
)
inline

◆ ~ApplyModeProxy()

osg::State::ApplyModeProxy::~ApplyModeProxy ( )
inline

Member Data Documentation

◆ _mode

GLenum osg::State::ApplyModeProxy::_mode

◆ _need_to_apply_value

bool osg::State::ApplyModeProxy::_need_to_apply_value

◆ _previous_value

bool osg::State::ApplyModeProxy::_previous_value

◆ _state

osg::State& osg::State::ApplyModeProxy::_state

The documentation for this struct was generated from the following file: