8 #ifndef META_OCEAN_RENDERING_DEPTH_ATTRIBUTE_H
9 #define META_OCEAN_RENDERING_DEPTH_ATTRIBUTE_H
This class is the base class for all rendering attribute objects.
Definition: Attribute.h:39
This class implements a depth attribute specifying the depth buffer behavior for associated objects.
Definition: DepthAttribute.h:35
virtual bool writingEnabled() const
Returns whether the depth buffer writing is enabled.
virtual bool testingEnabled() const
Returns whether the depth buffer is used for occlusion tests.
virtual void setTestingEnabled(const bool state)
Sets whether the depth buffer is used for occlusion tests.
DepthFunction
Definition of different depth comparison functions.
Definition: DepthAttribute.h:42
@ FUNCTION_LESS
Accepted if the incomming depth value is less than the stored one.
Definition: DepthAttribute.h:52
@ FUNCTION_GREATER
Accepted if the incomming depth value is greater than the stored one.
Definition: DepthAttribute.h:48
@ FUNCTION_LESS_EQUAL
Accepted if the incomming depth value is less than or equal to the stored one.
Definition: DepthAttribute.h:54
@ FUNCTION_GREATER_EQUAL
Accepted if the incomming depth value is greater than or equal to the stored one.
Definition: DepthAttribute.h:50
@ FUNCTION_ALWAYS
Always accepted.
Definition: DepthAttribute.h:44
@ FUNCTION_NEVER
Never accepted.
Definition: DepthAttribute.h:56
@ FUNCTION_EQUAL
Accepted if the incomming depth value is equal to the stored one.
Definition: DepthAttribute.h:46
virtual void setDepthFunction(const DepthFunction function)
Sets the depth function of this attribute.
DepthAttribute()
Creates a new depth attribute object.
ObjectType type() const override
Returns the type of this object.
virtual DepthFunction depthFunction() const
Returns the depth function of this attribute.
virtual void setWritingEnabled(const bool state)
Sets whether the depth buffer is writable.
ObjectType
Definition of different object type.
Definition: Object.h:63
This class implements a smart rendering object reference.
Definition: rendering/ObjectRef.h:34
SmartObjectRef< DepthAttribute > DepthAttributeRef
Definition of a smart object reference holding a depth attribute.
Definition: DepthAttribute.h:21
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15