Helper class used by BufferClearing::Clear() More...
#include </home/chochlik/devel/oglplus/include/oglplus/context/buffer_clearing.hpp>
Public Member Functions | |
ClrBits | ColorBuffer (void) |
Calling this member function causes the color buffer to be cleared. More... | |
ClrBits | DepthBuffer (void) |
Calling this member function causes the depth buffer to be cleared. More... | |
ClrBits | StencilBuffer (void) |
Calling this member function causes the stencil buffer to be cleared. More... | |
~ClrBits (void) | |
The destructor does the actual clearing of the buffers. More... | |
Helper class used by BufferClearing::Clear()
Instances of this class cause the write buffers to be cleared depending on which member functions were called during the life-time of the instance.
oglplus::context::ClrBits::~ClrBits | ( | void | ) |
The destructor does the actual clearing of the buffers.
ClrBits oglplus::context::ClrBits::ColorBuffer | ( | void | ) |
Calling this member function causes the color buffer to be cleared.
GL_COLOR_BUFFER_BIT
ClrBits oglplus::context::ClrBits::DepthBuffer | ( | void | ) |
Calling this member function causes the depth buffer to be cleared.
GL_DEPTH_BUFFER_BIT
ClrBits oglplus::context::ClrBits::StencilBuffer | ( | void | ) |
Calling this member function causes the stencil buffer to be cleared.
GL_STENCIL_BUFFER_BIT