raisin::ScopedFramebuffer
class · #include <rayrai/GlStateGuard.hpp>
RAII guard that binds a framebuffer and restores the previous binding of the same target.
Constructors & destructor
ScopedFramebuffer
cpp
ScopedFramebuffer(gl::GLenum target, unsigned int framebuffer)Parameters
| Parameter | Description |
|---|---|
target | GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_DRAW_FRAMEBUFFER. |
framebuffer | Framebuffer to bind. |
~ScopedFramebuffer
cpp
~ScopedFramebuffer()