Om
1.0.0
A universal framework for multimedia simulation
|
A class that specifies how the depth buffer should be updated when drawing. More...
#include <omGraphicsDepthMode.h>
Public Member Functions | |
DepthMode () | |
Create a new depth mode with the default depth parameters. More... | |
DepthMode (DepthTest newTest) | |
Create a new depth mode with the given depth test and default range of [0,1]. More... | |
DepthMode (DepthTest newTest, const AABB1f &newRange) | |
Create a new depth mode with the given depth test and range. More... | |
const DepthTest & | getTest () const |
Return an object that describes the depth test used by this depth mode. More... | |
void | setTest (const DepthTest &newTest) |
Set the depth test used by this depth mode. More... | |
const AABB1f & | getRange () const |
Return the output range of depth values which should be written to the depth buffer. More... | |
void | setRange (const AABB1f &newDepthRange) |
Set the output range of depth values which should be written to the depth buffer. More... | |
void | setRange (Float minDepth, Float maxDepth) |
Set the output range of depth values which should be written to the depth buffer. More... | |
Bool | operator== (const DepthMode &other) const |
Return whether or not this depth mode is equal to another depth mode. More... | |
Bool | operator!= (const DepthMode &other) const |
Return whether or not this depth mode is not equal to another depth mode. More... | |
A class that specifies how the depth buffer should be updated when drawing.
|
inline |
Create a new depth mode with the default depth parameters.
The default depth test is DepthTest::LESS_THAN and the default depth range is [0,1].
|
inline |
Create a new depth mode with the given depth test and default range of [0,1].
Create a new depth mode with the given depth test and range.
|
inline |
Return an object that describes the depth test used by this depth mode.
|
inline |
Set the depth test used by this depth mode.
|
inline |
Return the output range of depth values which should be written to the depth buffer.
The range of this value should lie within the range [0,1]. This specifies the range which normalized device coordiantes from [-1,1] should be mapped to before depth values are written to the depth buffer. For instance, a range of [0,0.5] means that depth values are in that range and only half of the depth buffer's precision is used.
|
inline |
Set the output range of depth values which should be written to the depth buffer.
The range of this value should lie within the range [0,1]. This specifies the range which normalized device coordiantes from [-1,1] should be mapped to before depth values are written to the depth buffer. For instance, a range of [0,0.5] means that depth values are in that range and only half of the depth buffer's precision is used.
Set the output range of depth values which should be written to the depth buffer.
The range of this value should lie within the range [0,1]. This specifies the range which normalized device coordiantes from [-1,1] should be mapped to before depth values are written to the depth buffer. For instance, a range of [0,0.5] means that depth values are in that range and only half of the depth buffer's precision is used.
Return whether or not this depth mode is equal to another depth mode.
Return whether or not this depth mode is not equal to another depth mode.