Click or drag to resize

glStencilMask Method

Control the front and back writing of individual bits in the stencil planes.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void StencilMask(
	uint mask
)

Parameters

mask
Type: SystemUInt32
specifies a bit mask to enable and disable> writing of individual bits in the stencil planes. Initially, the mask is all 1's.
Remarks
StencilMask controls the writing of individual bits in the stencil planes. The least significant n bits of AMask, where n is the number of bits in the stencil buffer, specify a mask. Where a 1 appears in the mask, it's possible to write to the corresponding bit in the stencil buffer. Where a 0 appears, the corresponding bit is write-protected. Initially, all bits are enabled for writing.

There can be two separate mask writemasks; one affects back-facing polygons, and the other affects front-facing polygons as well as other non-polygon primitives. StencilMask sets both front and back stencil writemasks to the same values. Use StencilMaskSeparate(glFace, UInt32) to set front and back stencil writemasks to different values.

Note: StencilMask is the same as calling StencilMaskSeparate(glFace, UInt32) with face set to FrontAndBack.

OpenGL API: glStencilMask

See Also

Reference