glStencilFunc¶
set front and back function and reference value for stencil testing
- arguments
-
int
$func
Specifies the test function. Eight symbolic constants are valid:GL_NEVER ,GL_LESS ,GL_LEQUAL ,GL_GREATER ,GL_GEQUAL ,GL_EQUAL ,GL_NOTEQUAL , andGL_ALWAYS . The initial value isGL_ALWAYS .int
$ref
Specifies the reference value for the stencil test. ref is clamped to the range 0 2 n - 1 , where n is the number of bitplanes in the stencil buffer. The initial value is 0.int
$mask
Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's.
- returns
-
void
Copyright © 2010-2014 Khronos Group
This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.