Skip to content

API Reference / @gtkx/gl / stencilFunc

Function: stencilFunc() ​

stencilFunc(func, ref, mask): void

Defined in: generated/commands.d.ts:5337

void glStencilFunc(GLenum func, GLint ref, GLuint mask)

Provided by GL_VERSION_1_0. GLX render opcode 162.

Parameters ​

func ​

number

StencilFunction

ref ​

number

GLint, kind StencilValue. This parameter represents an unmasked stencil value.

mask ​

number

GLuint, kind StencilMask. This parameter represents mask to apply to stencil values.

Returns ​

void