Loading...
Searching...
No Matches
StencilMode.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
126[[nodiscard]] SFML_GRAPHICS_API bool operator==(const StencilMode& left, const StencilMode& right);
138[[nodiscard]] SFML_GRAPHICS_API bool operator!=(const StencilMode& left, const StencilMode& right);
Definition AudioResource.hpp:36
StencilComparison
Enumeration of the stencil test comparisons that can be performed.
Definition StencilMode.hpp:43
@ NotEqual
The stencil test passes if the new value is strictly unequal to the value in the stencil buffer.
@ Less
The stencil test passes if the new value is less than the value in the stencil buffer.
@ GreaterEqual
The stencil test passes if the new value is greater than or equal to the value in the stencil buffer.
@ Greater
The stencil test passes if the new value is greater than the value in the stencil buffer.
@ LessEqual
The stencil test passes if the new value is less than or equal to the value in the stencil buffer.
@ Equal
The stencil test passes if the new value is strictly equal to the value in the stencil buffer.
StencilUpdateOperation
Enumeration of the stencil buffer update operations.
Definition StencilMode.hpp:61
@ Keep
If the stencil test passes, the value in the stencil buffer is not modified.
@ Replace
If the stencil test passes, the value in the stencil buffer is set to the new value.
@ Decrement
If the stencil test passes, the value in the stencil buffer is decremented and if required clamped.
@ Increment
If the stencil test passes, the value in the stencil buffer is incremented and if required clamped.
@ Invert
If the stencil test passes, the value in the stencil buffer is bitwise inverted.
@ Zero
If the stencil test passes, the value in the stencil buffer is set to zero.
bool operator==(const StencilMode &left, const StencilMode &right)
Overload of the operator==
bool operator!=(const StencilMode &left, const StencilMode &right)
Overload of the operator!=
StencilValue(int theValue)
Construct a stencil value from a signed integer.
StencilValue(unsigned int theValue)
Construct a stencil value from an unsigned integer.