![]() |
Cinder
0.9.1
|
#include <scoped.h>
Inherits cinder::Noncopyable.
Public Member Functions | |
ScopedDepth (bool enableReadAndWrite) | |
ScopedDepth (bool enableReadAndWrite, GLenum depthFunc) | |
~ScopedDepth () | |
Scopes state of depth testing and writing.
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 | ( | ) |