LightsprintSDK 2021.08.08
rr_gl::PreserveFlag Class Reference

#include <PreserveState.h>

Public Member Functions

 PreserveFlag (GLenum _name, bool _newval)
 
void change (bool _newval)
 
 ~PreserveFlag ()
 

Detailed Description

Faster preservation of flag.

Requested value is set in ctor, old value is restored in dtor. Restore works reliably only if you don't touch flag between ctor and dtor.

Constructor & Destructor Documentation

◆ PreserveFlag()

rr_gl::PreserveFlag::PreserveFlag ( GLenum  _name,
bool  _newval 
)
inline

◆ ~PreserveFlag()

rr_gl::PreserveFlag::~PreserveFlag ( )
inline

Member Function Documentation

◆ change()

void rr_gl::PreserveFlag::change ( bool  _newval)
inline