Skip to content

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

ParameterDescription
targetGL_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_DRAW_FRAMEBUFFER.
framebufferFramebuffer to bind.

~ScopedFramebuffer ​

cpp
~ScopedFramebuffer()

RaiSim — physics for robotics and AI.