raisin::ScopedPixelStore
class · #include <rayrai/GlStateGuard.hpp>
RAII guard that sets one glPixelStorei parameter and restores its previous value.
Constructors & destructor
ScopedPixelStore
cpp
ScopedPixelStore(gl::GLenum name, gl::GLint value)Parameters
| Parameter | Description |
|---|---|
name | Pixel-store parameter, such as GL_UNPACK_SWAP_BYTES. |
value | Value for the guard's lifetime. |
~ScopedPixelStore
cpp
~ScopedPixelStore()