8 #ifndef META_OCEAN_RENDERING_GLES_DEPTH_ATTRIBUTE_H
9 #define META_OCEAN_RENDERING_GLES_DEPTH_ATTRIBUTE_H
22 namespace GLESceneGraph
This class implements a depth attribute specifying the depth buffer behavior for associated objects.
Definition: DepthAttribute.h:35
DepthFunction
Definition of different depth comparison functions.
Definition: DepthAttribute.h:42
This class wraps a GLESceneGraph attribute object.
Definition: GLESAttribute.h:36
This class implements a GLESceneGraph depth attribute.
Definition: GLESDepthAttribute.h:32
void setDepthFunction(const DepthFunction function) override
Sets the depth function of this attribute.
bool testingEnabled_
True, to enable depth buffer testing.
Definition: GLESDepthAttribute.h:107
GLESDepthAttribute()
Creates a new GLESceneGraph depth attribute object.
void setWritingEnabled(const bool state) override
Sets whether the depth buffer is writable.
~GLESDepthAttribute() override
Destructs a GLESceneGraph depth attribute object.
void setTestingEnabled(const bool state) override
Sets whether the depth buffer is used for occlusion tests.
bool writingEnabled() const override
Returns whether the depth buffer writing is enabled.
GLenum glesDepthFunction
OpenGL ES depth function value.
Definition: GLESDepthAttribute.h:116
bool testingEnabled() const override
Returns whether the depth buffer is used for occlusion tests.
void bindAttribute(const GLESFramebuffer &framebuffer, GLESShaderProgram &shaderProgram) override
Binds this attribute.
bool writingEnabled_
True, to enable depth buffer writing.
Definition: GLESDepthAttribute.h:110
void unbindAttribute() override
Unbindes this attribute.
static GLenum translateDepthFunction(const DepthFunction function)
Translates a depth function to the corresponding OpenGL ES enum value.
DepthFunction depthFunction_
Depth function value.
Definition: GLESDepthAttribute.h:113
DepthFunction depthFunction() const override
Returns the depth function of this attribute.
This class implements a class factory for all GLESceneGraph objects.
Definition: GLESFactory.h:30
This class implements a base for all GLESceneGraph framebuffers.
Definition: rendering/glescenegraph/GLESFramebuffer.h:34
This class implements a container for an OpenGL ES shader program.
Definition: GLESShaderProgram.h:53
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15