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

#include <scoped.h>

Inherits cinder::Noncopyable.

Public Member Functions

 ScopedDepthTest (bool enableTest)
 
 ScopedDepthTest (bool enableTest, GLenum depthFunc)
 
 ~ScopedDepthTest ()
 

Detailed Description

Scopes state to control the depth testing / reading operation. See information on c\ GL_DEPTH_TEST.

Constructor & Destructor Documentation

cinder::gl::ScopedDepthTest::ScopedDepthTest ( bool  enableTest)

Enables or disables the depth testing / reading operation for the scope of this object.

cinder::gl::ScopedDepthTest::ScopedDepthTest ( bool  enableTest,
GLenum  depthFunc 
)

Enables or disables the depth test operation, which controls reading and writing to the depth buffer, for the scope of this object. Also specifies a depth comparison function, either GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL and GL_ALWAYS (see info on glDepthFunc).

cinder::gl::ScopedDepthTest::~ScopedDepthTest ( )

Destructor returns state to how it was before this object was constructed.


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