Skip to content

API Reference / @gtkx/gl / stencilFunc

Function: stencilFunc() ​

stencilFunc(func, ref, mask): void

Defined in: packages/gl/src/generated/commands.ts:6738

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