Euphoria
stencilaction.h
Go to the documentation of this file.
1#pragma once
2
3namespace eu::render
4{
5
11enum class StencilAction
12{
14 keep,
16 zero,
18 replace,
28 invert
29};
30
35} // namespace klotter
@ increase
The stencil value is increased by 1 if it is lower than the maximum value.
@ keep
The currently stored stencil value is kept.
@ invert
Bitwise inverts the current stencil buffer value.
@ replace
The stencil value is replaced with the reference value set with stencil_func.
@ decrease
The stencil value is decreased by 1 if it is higher than the minimum value.
@ increase_wrap
Same as increase, but wraps it back to 0 as soon as the maximum value is exceeded.
@ decrease_wrap
Same as decrease, but wraps it to the maximum value if it ends up lower than 0.