This class provides a simple guard for setting the active view transform. More...
#include <Luminous/RenderContext.hpp>
Public Member Functions | |
| ViewTransformGuard (RenderContext &r, const Nimble::Matrix4f &m) | |
| Construct a new guard. More... | |
| ViewTransformGuard (ViewTransformGuard &&rhs) | |
| Construct a guard by moving. More... | |
| ~ViewTransformGuard () | |
| Destructor. This function automatically calls RenderContext::popViewTransform(). | |
This class provides a simple guard for setting the active view transform.
It will automatically pop the transform in its destructor so the user doesn't need to remember to do it manually. It is equivalent to calling "RenderContext::pushViewTransform(const Nimble::Matrix4 & m)" and "RenderContext::popViewTransform"
|
inline |
Construct a new guard.
| r | render context |
|
inline |
Construct a guard by moving.
| rhs | guard to move |