diff options
author | chai <chaifix@163.com> | 2019-12-21 22:24:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-21 22:24:15 +0800 |
commit | ec111247c614663d8231245a17c314b9b8b4a28c (patch) | |
tree | a66058508161da488371c90316865ae850b8be15 /src/core/depth.c | |
parent | c3f45735ecfab6e567be371758f21395e92dfef6 (diff) |
*misc
Diffstat (limited to 'src/core/depth.c')
-rw-r--r-- | src/core/depth.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/core/depth.c b/src/core/depth.c new file mode 100644 index 0000000..e2c776b --- /dev/null +++ b/src/core/depth.c @@ -0,0 +1,35 @@ +#include "mem.h" +#include "depth.h" +#include "../util/assert.h" + +bool depth_always(float src, float dst) { + return 1; +} + +bool depth_never(float src, float dst) { + return 0; +} + +bool depth_less(float src, float dst) { + return src < dst; +} + +bool depth_equal(float src, float dst) { + return src == dst; +} + +bool depth_leuqal(float src, float dst) { + return src <= dst; +} + +bool depth_greater(float src, float dst) { + return src > dst; +} + +bool depth_notequal(float src, float dst) { + return src != dst; +} + +bool depth_gequer(float src, float dst) { + return src >= dst; +} |