Skip to content

raisin::ScopedDrawBuffer ​

class · #include <rayrai/GlStateGuard.hpp>

RAII guard that sets a single draw buffer and restores up to eight previous draw buffers.

Constructors & destructor ​

ScopedDrawBuffer ​

cpp
explicit ScopedDrawBuffer(gl::GLenum drawBuffer)

Parameters

ParameterDescription
drawBufferDraw buffer for the guard's lifetime.

~ScopedDrawBuffer ​

cpp
~ScopedDrawBuffer()

RaiSim — physics for robotics and AI.