![]() |
Cinder
0.9.1
|
#include <scoped.h>
Inherits cinder::Noncopyable.
Public Member Functions | |
ScopedDepthTest (bool enableTest) | |
ScopedDepthTest (bool enableTest, GLenum depthFunc) | |
~ScopedDepthTest () | |
Scopes state to control the depth testing / reading operation. See information on c\ GL_DEPTH_TEST.
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.