Constructor

@:value({ face : FoxTriangleFace.FRONT_AND_BACK, onBothPass : FoxStencilActionType.KEEP, onDepthFail : FoxStencilActionType.KEEP, onFail : FoxStencilActionType.KEEP, compare : FoxStencilCompareMode.ALWAYS, writeMask : 0xFF, readMask : 0x0, refValue : 0 })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

value:Int

The reference value for this stencil action

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

triangleFace:FoxTriangleFace

The face of the triangle where operations will take place.

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

@:value(0)referenceValueId:Int = 0

@:value(0)actionId:Int = 0

Methods

@:value({ write : 0xFF, read : 0xFF, face : FoxTriangleFace.FRONT_AND_BACK })setMask(face:FoxTriangleFace = FoxTriangleFace.FRONT_AND_BACK, read:Int = 0xFF, write:Int = 0xFF):Void

@:value({ onBothPass : FoxStencilActionType.KEEP, onDepthFail : FoxStencilActionType.KEEP, onFail : FoxStencilActionType.KEEP, compare : FoxStencilCompareMode.ALWAYS })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

privateget_read():Bool

privateset_read(v:Bool):Bool

privateget_write():Bool

privateset_write(v:Bool):Bool