Skip to content

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

ParameterDescription
namePixel-store parameter, such as GL_UNPACK_SWAP_BYTES.
valueValue for the guard's lifetime.

~ScopedPixelStore ​

cpp
~ScopedPixelStore()

RaiSim — physics for robotics and AI.