Loading...
Searching...
No Matches
StencilMode.h
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.
sfStencilComparison
Enumeration of the stencil test comparisons that can be performed.
Definition StencilMode.h:40
@ sfStencilComparisonNotEqual
The stencil test passes if the new value is strictly unequal to the value in the stencil buffer.
Definition StencilMode.h:47
@ sfStencilComparisonGreaterEqual
The stencil test passes if the new value is greater than or equal to the value in the stencil buffer.
Definition StencilMode.h:45
@ sfStencilComparisonEqual
The stencil test passes if the new value is strictly equal to the value in the stencil buffer.
Definition StencilMode.h:46
@ sfStencilComparisonLess
The stencil test passes if the new value is less than the value in the stencil buffer.
Definition StencilMode.h:42
@ sfStencilComparisonGreater
The stencil test passes if the new value is greater than the value in the stencil buffer.
Definition StencilMode.h:44
@ sfStencilComparisonLessEqual
The stencil test passes if the new value is less than or equal to the value in the stencil buffer.
Definition StencilMode.h:43
sfStencilUpdateOperation
Enumeration of the stencil buffer update operations.
Definition StencilMode.h:59
@ sfStencilUpdateOperationReplace
If the stencil test passes, the value in the stencil buffer is set to the new value.
Definition StencilMode.h:62
@ sfStencilUpdateOperationZero
If the stencil test passes, the value in the stencil buffer is set to zero.
Definition StencilMode.h:61
@ sfStencilUpdateOperationIncrement
If the stencil test passes, the value in the stencil buffer is incremented and if required clamped.
Definition StencilMode.h:63
@ sfStencilUpdateOperationInvert
If the stencil test passes, the value in the stencil buffer is bitwise inverted.
Definition StencilMode.h:65
@ sfStencilUpdateOperationDecrement
If the stencil test passes, the value in the stencil buffer is decremented and if required clamped.
Definition StencilMode.h:64
@ sfStencilUpdateOperationKeep
If the stencil test passes, the value in the stencil buffer is not modified.
Definition StencilMode.h:60
const sfStencilMode sfStencilMode_default
Define the default values for a StencilMode.
Definition StencilMode.h:96
sfStencilValue stencilReference
The reference value we're performing the stencil test with.
Definition StencilMode.h:87
sfStencilValue stencilMask
The mask to apply to both the reference value and the value in the stencil buffer.
Definition StencilMode.h:88
bool stencilOnly
Whether we should update the color buffer in addition to the stencil buffer.
Definition StencilMode.h:89
sfStencilUpdateOperation stencilUpdateOperation
The update operation to perform if the stencil test passes.
Definition StencilMode.h:86
sfStencilComparison stencilComparison
The comparison we're performing the stencil test with.
Definition StencilMode.h:85