summaryrefslogtreecommitdiff
path: root/src/core/depth.c
blob: e2c776bb0d9bc413723376e6295fc95146af1bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
}