Cinder  0.9.1
Public Member Functions | List of all members
cinder::gl::ScopedDepthWrite Struct Reference

#include <scoped.h>

Inherits cinder::Noncopyable.

Public Member Functions

 ScopedDepthWrite (bool enableWrite)
 
 ~ScopedDepthWrite ()
 

Detailed Description

Scopes state to control whether successful depth tests write to the depth buffer. See information on glDepthMask().

Note
You must enable depth testing / reading (GL_DEPTH_TEST) for this to take place.

Constructor & Destructor Documentation

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.


The documentation for this struct was generated from the following files: