class FoxStencilAction
package foxlite.stencil
Constructor
new(refValue:Int = 0, readMask:Int = 0x0, writeMask:Int = 0xFF, compare:FoxStencilCompareMode = FoxStencilCompareMode.ALWAYS, onFail:FoxStencilActionType = FoxStencilActionType.KEEP, onDepthFail:FoxStencilActionType = FoxStencilActionType.KEEP, onBothPass:FoxStencilActionType = FoxStencilActionType.KEEP, face:FoxTriangleFace = FoxTriangleFace.FRONT_AND_BACK)
Variables
read:Bool
If true, configures the action to only read the stencil value
This sets write to false
A stencil operation should not perform read and write at the same time
write:Bool
If true, configures the action to only write to the stencil buffer
This sets read to false
A stencil operation should not perform read and write at the same time
compareMode:FoxStencilCompareMode
Determines if the action should pass or fail depending on the outcome of this
comparison between value and the stencil counter
actionOnBothPass:FoxStencilActionType
Updates the stencil counter if the action passed in both the stencil buffer and depth buffer
actionOnDepthFail:FoxStencilActionType
Updates the stencil counter if the action failed on the depth buffer
actionOnFail:FoxStencilActionType
Updates the stencil counter if the action passed on the depth buffer, but failed in the stencil buffer
Methods
setMask(face:FoxTriangleFace = FoxTriangleFace.FRONT_AND_BACK, read:Int = 0xFF, write:Int = 0xFF):Void
setActions(compare:FoxStencilCompareMode = FoxStencilCompareMode.ALWAYS, onFail:FoxStencilActionType = FoxStencilActionType.KEEP, onDepthFail:FoxStencilActionType = FoxStencilActionType.KEEP, onBothPass:FoxStencilActionType = FoxStencilActionType.KEEP):Void
Sets the operations for this stencil action: fail, zfail, zpass