Content


NTL
Core
CStoreState

CStoreState


This helper class provides shorter alternative for saving and restoring active state in renderer. This class works the same way as other CStore* classes but it save all active states.

It can be used like this.

CStoreState store{ renderer };
...
// Change any active state in renderer 
...
class CStoreState final
{
public:
    CStoreState(IRenderer *renderer);
    ~CStoreState();
};
Namespace: nitisa
Include: Nitisa/Render/StoreState.h