OGLplus (0.52.0) a C++ wrapper for OpenGL

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...
 

Detailed Description

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.

Note
The actual clearing of the buffers is done when the instance is destroyed.
See Also
BufferClearing
BufferClearing::Clear()

Constructor & Destructor Documentation

oglplus::context::ClrBits::~ClrBits ( void  )

The destructor does the actual clearing of the buffers.

Related OpenGL symbols:
glClear

Member Function Documentation

ClrBits oglplus::context::ClrBits::ColorBuffer ( void  )

Calling this member function causes the color buffer to be cleared.

Related OpenGL symbols:
GL_COLOR_BUFFER_BIT
Examples:
standalone/002_amd_perf_monitor.cpp.
ClrBits oglplus::context::ClrBits::DepthBuffer ( void  )

Calling this member function causes the depth buffer to be cleared.

Related OpenGL symbols:
GL_DEPTH_BUFFER_BIT
ClrBits oglplus::context::ClrBits::StencilBuffer ( void  )

Calling this member function causes the stencil buffer to be cleared.

Related OpenGL symbols:
GL_STENCIL_BUFFER_BIT

The documentation for this class was generated from the following file:

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).