glBlendFunc¶
specify pixel arithmetic
- arguments
-
int
$sfactor
Specifies how the red, green, blue, and alpha source blending factors are computed. The initial value isGL_ONE .int
$dfactor
Specifies how the red, green, blue, and alpha destination blending factors are computed. The following symbolic constants are accepted:GL_ZERO ,GL_ONE ,GL_SRC_COLOR ,GL_ONE_MINUS_SRC_COLOR ,GL_DST_COLOR ,GL_ONE_MINUS_DST_COLOR ,GL_SRC_ALPHA ,GL_ONE_MINUS_SRC_ALPHA ,GL_DST_ALPHA ,GL_ONE_MINUS_DST_ALPHA .GL_CONSTANT_COLOR ,GL_ONE_MINUS_CONSTANT_COLOR ,GL_CONSTANT_ALPHA , andGL_ONE_MINUS_CONSTANT_ALPHA . The initial value isGL_ZERO .
- 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/.