XLE  v0.02.0
Classes | Public Member Functions | List of all members
SceneEngine::ProtectState Class Reference

Low-level save and restore of state information More...

#include <SceneEngineUtils.h>

Classes

struct  States
 

Public Member Functions

 ProtectState (RenderCore::Metal::DeviceContext &context, States::BitField states)
 
 ProtectState (ProtectState &&moveFrom)
 
ProtectStateoperator= (ProtectState &&moveFrom)
 

Detailed Description

Low-level save and restore of state information

Handy utility for functions that want to restore the low-level GFX API state back to it's original state.

Often rendering utility functions need to change certain states on a temporary basis. This can be confusing to the caller, because it's often not clear what states will be affected.

States captured in the constructor will be restored to their previous values in the destructor.


The documentation for this class was generated from the following files: