ClearStencil
Keywords: ClearStencil, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> ClearStencil - 3D API clear stencil

> ## Usage

> ClearStencil = int(val)

> ## Valid Enumerants

> val: integer value

> ## Description

> Specify the value used by to clear the stencil buffer. See the OpenGL glClearStencil manual page for details. See the D3DCLEAR_STENCIL flag description for the IDirect3DDevice9::Clear method.

> The standard reset callback sets the ClearStencil state to int(0).

> ## Opengl Functionality Requirements

> OpenGL 1.0

> ## Direct3D Functionality Requirements

> DirectX 9

> ## See Also

> StencilEnable, StencilFail, StencilFunc, StencilFuncSeparate, StencilMask, StencilMaskSeparate, StencilOp, StencilOpSeparate, StencilPass, StencilRef, StencilTestEnable, StencilTestTwoSideEnable, StencilWriteMask, StencilZFail, ClearColor, ClearDepth, TwoSidedStencilMode