summaryrefslogtreecommitdiff
path: root/src/core/depth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/depth.c')
-rw-r--r--src/core/depth.c35
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;
+}