![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GlView.h>
Temporarily changes the GL::ViewState of a GlView and resetting to the original value on destruction. More...
Temporarily changes the GL::ViewState of a GlView and resetting to the original value on destruction.
The main use case is to allow wrapper GlObjects (e.g. GlProjectiveObject) for temporarily modifying the GL::ViewState of a view when calling draw() on the wrapped GlObject.
Public Member Functions | |
ViewStateGuard (const GlView &view, const GL::ViewState &viewState) | |