ImFusion C++ SDK 4.4.0
ImFusion::GlView::ViewStateGuard Class Reference

#include <ImFusion/GL/GlView.h>

Temporarily changes the GL::ViewState of a GlView and resetting to the original value on destruction. More...

Detailed Description

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)

The documentation for this class was generated from the following file:
  • ImFusion/GL/GlView.h
Search Tab / S to search, Esc to close