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

#include <scoped.h>

Inherits cinder::Noncopyable.

Public Member Functions

 ScopedDepth (bool enableReadAndWrite)
 
 ScopedDepth (bool enableReadAndWrite, GLenum depthFunc)
 
 ~ScopedDepth ()
 

Detailed Description

Scopes state of depth testing and writing.

Constructor & Destructor Documentation

cinder::gl::ScopedDepth::ScopedDepth ( bool  enableReadAndWrite)

Enables or disables both depth testing and writing to the depth buffer.

cinder::gl::ScopedDepth::ScopedDepth ( bool  enableReadAndWrite,
GLenum  depthFunc 
)

Enables or disables depth comparisons and writing to the depth buffer, and specifies a depth comparison function, either GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL and GL_ALWAYS.

cinder::gl::ScopedDepth::~ScopedDepth ( )

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