diff options
Diffstat (limited to 'src/mbgl/gfx/depth_mode.hpp')
-rw-r--r-- | src/mbgl/gfx/depth_mode.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mbgl/gfx/depth_mode.hpp b/src/mbgl/gfx/depth_mode.hpp new file mode 100644 index 0000000000..93a13be091 --- /dev/null +++ b/src/mbgl/gfx/depth_mode.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include <mbgl/gfx/types.hpp> +#include <mbgl/util/range.hpp> + +namespace mbgl { +namespace gfx { + +class DepthMode { +public: + DepthFunctionType func; + DepthMaskType mask; + Range<float> range; + + static DepthMode disabled() { + return DepthMode { DepthFunctionType::Always, DepthMaskType::ReadOnly, { 0.0, 1.0 } }; + } +}; + +} // namespace gfx +} // namespace mbgl |