OpenSceneGraph 3.6.5
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...

#include <State>

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

Referenced by ApplyModeProxy(), and ~ApplyModeProxy().

◆ _need_to_apply_value

bool osg::State::ApplyModeProxy::_need_to_apply_value

Referenced by ApplyModeProxy(), and ~ApplyModeProxy().

◆ _previous_value

bool osg::State::ApplyModeProxy::_previous_value

Referenced by ApplyModeProxy(), and ~ApplyModeProxy().

◆ _state

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

Referenced by ApplyModeProxy(), and ~ApplyModeProxy().


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

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.