diff options
Diffstat (limited to 'src/core/depth.h')
-rw-r--r-- | src/core/depth.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/depth.h b/src/core/depth.h new file mode 100644 index 0000000..3914055 --- /dev/null +++ b/src/core/depth.h @@ -0,0 +1,17 @@ +#ifndef _SOFTSHADEROOM_DEPTH_H_ +#define _SOFTSHADEROOM_DEPTH_H_ + +#include "../util/type.h" + +typedef bool(*DepthFunc)(float src, float dst); + +bool depth_always(float src, float dst); +bool depth_never(float src, float dst); +bool depth_less(float src, float dst); +bool depth_equal(float src, float dst); +bool depth_leuqal(float src, float dst); +bool depth_greater(float src, float dst); +bool depth_notequal(float src, float dst); +bool depth_gequer(float src, float dst); + +#endif
\ No newline at end of file |