![]() |
Cinder
0.9.1
|
#include <scoped.h>
Inherits cinder::Noncopyable.
Public Member Functions | |
ScopedDepthWrite (bool enableWrite) | |
~ScopedDepthWrite () | |
Scopes state to control whether successful depth tests write to the depth buffer. See information on glDepthMask()
.
GL_DEPTH_TEST
) for this to take place. cinder::gl::ScopedDepthWrite::ScopedDepthWrite | ( | bool | enableWrite | ) |
Enables or disables writing to the depth buffer for the scope of this object.
cinder::gl::ScopedDepthWrite::~ScopedDepthWrite | ( | ) |
Destructor returns state to how it was before this object was constructed.