From ec111247c614663d8231245a17c314b9b8b4a28c Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 21 Dec 2019 22:24:15 +0800 Subject: *misc --- src/core/depth.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/core/depth.h (limited to 'src/core/depth.h') 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 -- cgit v1.1-26-g67d0