setStencilConfig method
Implementation
void setStencilConfig(StencilConfig configuration,
{StencilFace targetFace = StencilFace.both}) {
if (configuration.readMask < 0 || configuration.readMask > 0xFFFFFFFF) {
throw Exception("The stencil read mask must be in the range [0, 255]");
}
if (configuration.writeMask < 0 || configuration.writeMask > 0xFFFFFFFF) {
throw Exception("The stencil write mask must be in the range [0, 255]");
}
_setStencilConfig(
configuration.compareFunction.index,
configuration.stencilFailureOperation.index,
configuration.depthFailureOperation.index,
configuration.depthStencilPassOperation.index,
configuration.readMask,
configuration.writeMask,
targetFace.index);
}