GLAPI/glBlendFuncSeparate: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
4.0 API.
 
 
(16 intermediate revisions by 3 users not shown)
Line 8: Line 8:
== Function Definition ==
== Function Definition ==


   void '''glBlendFuncSeparate'''(GLenum ''srcRGB'', GLenum ''dstRGB'', GLenum ''srcAlpha'', GLenum ''dstAlpha'');
   void '''glBlendFunc'''(GLenum {{param|sfactor}}, GLenum {{param|dfactor}});
   void '''glBlendFuncSeparatei'''(GLuint ''buf'', GLenum ''srcRGB'', GLenum ''dstRGB'', GLenum ''srcAlpha'', GLenum ''dstAlpha'');
  void '''glBlendFunci'''(GLuint {{param|buf}}, GLenum {{param|sfactor}}, GLenum {{param|dfactor}});
 
; buf
: For '''glBlendFunci''', specifies the index of the draw buffer for which to set the blend function.
; sfactor
: Specifies how the red, green, blue, and alpha source blending factors are computed. The initial value is {{enum|GL_ONE}}.
; dfactor
: Specifies how the red, green, blue, and alpha destination blending factors are computed. The initial value is {{enum|GL_ZERO}}.
 
== Function Definition ==
 
  void '''glBlendFuncSeparate'''(GLenum {{param|srcRGB}}, GLenum {{param|dstRGB}}, GLenum {{param|srcAlpha}}, GLenum {{param|dstAlpha}});
   void '''glBlendFuncSeparatei'''(GLuint {{param|buf}}, GLenum {{param|srcRGB}}, GLenum {{param|dstRGB}}, GLenum {{param|srcAlpha}}, GLenum {{param|dstAlpha}});


; buf
; buf
: For '''glBlendFuncSeparatei''', specifies the index of the draw buffer for which to set the blend functions.
: For '''glBlendFuncSeparatei''', specifies the index of the draw buffer for which to set the blend functions.
; srcRGB
; srcRGB
: Specifies how the red, green, and blue blending factors are computed. The initial value is {{code|GL_ONE}}.
: Specifies how the red, green, and blue blending factors are computed. The initial value is {{enum|GL_ONE}}.
; dstRGB
; dstRGB
: Specifies how the red, green, and blue destination blending factors are computed. The initial value is {{code|GL_ZERO}}.
: Specifies how the red, green, and blue destination blending factors are computed. The initial value is {{enum|GL_ZERO}}.
; srcAlpha
; srcAlpha
: Specified how the alpha source blending factor is computed. The initial value is {{code|GL_ONE}}.
: Specified how the alpha source blending factor is computed. The initial value is {{enum|GL_ONE}}.
; dstAlpha
; dstAlpha
: Specified how the alpha destination blending factor is computed. The initial value is {{code|GL_ZERO}}.
: Specified how the alpha destination blending factor is computed. The initial value is {{enum|GL_ZERO}}.


== Description ==
== Description ==


Pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values). Blending is initially disabled. Use [[GLAPI/glEnable|glEnable]] and [[GLAPI/glDisable|glDisable]] with argument {{code|GL_BLEND}} to enable and disable blending.
Pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values). Blending is initially disabled. Use {{apifunc|glEnable}} and {{apifunc|glDisable}} with argument {{enum|GL_BLEND}} to enable and disable blending.


'''glBlendFuncSeparate''' defines the operation of blending for all draw buffers when it is enabled. '''glBlendFuncSeparatei''' defines the operation of blending for a single draw buffer specified by ''buf'' when enabled for that draw buffer. ''srcRGB'' specifies which method is used to scale the source RGB-color components. ''dstRGB'' specifies which method is used to scale the destination RGB-color components. Likewise, ''srcAlpha'' specifies which method is used to scale the source alpha color component, and ''dstAlpha'' specifies which method is used to scale the destination alpha component. The possible methods are described in the following table. Each method defines four scale factors, one each for red, green, blue, and alpha.
'''glBlendFunc''' is equivalent to calling '''glBlendFuncSeparate''' with {{param|sfactor}} for both the {{param|srcRGB}} and {{param|srcAlpha}} parameters, and {{param|dfactor}} for both the {{param|dstRGB}} and {{param|dstAlpha}} parameters. '''glBlendFunci''' works the same way relative to '''glBlendFuncSeparatei'''.


In the table and in subsequent equations, first source, second source and destination color components are referred to as <!--Missing Equation-->, <!--Missing Equation-->, and <!--Missing Equation-->, respectively. The color specified by [[GLAPI/glBlendColor|glBlendColor]] is referred to as <!--Missing Equation-->. They are understood to have integer values between 0 and <!--Missing Equation-->, where
'''glBlendFuncSeparate''' defines the operation of blending for all draw buffers when it is enabled. '''glBlendFuncSeparatei''' defines the operation of blending for a single draw buffer specified by {{param|buf}} when enabled for that draw buffer. {{param|srcRGB}} specifies which method is used to scale the source RGB-color components. {{param|dstRGB}} specifies which method is used to scale the destination RGB-color components. Likewise, {{param|srcAlpha}} specifies which method is used to scale the source alpha color component, and {{param|dstAlpha}} specifies which method is used to scale the destination alpha component. The possible methods are described in the following table. Each method defines four scale factors, one each for red, green, blue, and alpha.


<!--Missing Equation-->
In the table and in subsequent equations, first source, second source and destination color components are referred to as (R<sub>s0</sub>, G<sub>s0</sub>, B<sub>s0</sub>, A<sub>s0</sub>), (R<sub>s1</sub>, G<sub>s1</sub>, B<sub>s1</sub>, A<sub>s1</sub>) and (R<sub>d</sub>, G<sub>d</sub>, B<sub>d</sub>, A<sub>d</sub>), respectively. The color specified by {{apifunc|glBlendColor}} is referred to as (R<sub>c</sub>, G<sub>c</sub>, B<sub>c</sub>, A<sub>c</sub>).


Source and destination scale factors are referred to as (s<sub>R</sub>, s<sub>G</sub>, s<sub>B</sub>, s<sub>A</sub>) and (d<sub>R</sub>, d<sub>G</sub>, d<sub>B</sub>, d<sub>A</sub>).


 
{| class="wikitable" style="background-color:transparent;"
and <!--Missing Equation--> is the number of red, green, blue, and alpha bitplanes.
|-
 
Source and destination scale factors are referred to as <!--Missing Equation--> and <!--Missing Equation-->. All scale factors have range <!--Missing Equation-->.
 
 
 
{|
|+
! '''Parameter'''
! '''Parameter'''
! '''RGB Factor'''
! '''RGB Factor'''
! '''Alpha Factor'''
! '''Alpha Factor'''
|+
|-
| {{code|GL_ZERO}}
| {{enum|GL_ZERO}}
| <!--Missing Equation-->
| (0, 0, 0)
| <!--Missing Equation-->
| 0
|+
|-
| {{code|GL_ONE}}
| {{enum|GL_ONE}}
| <!--Missing Equation-->
| (1, 1, 1)
| <!--Missing Equation-->
| 1
|+
|-
| {{code|GL_SRC_COLOR}}
| {{enum|GL_SRC_COLOR}}
| <!--Missing Equation-->
| (R<sub>s0</sub>, G<sub>s0</sub>, B<sub>s0</sub>)
| <!--Missing Equation-->
| A<sub>s0</sub>
|+
|-
| {{code|GL_ONE_MINUS_SRC_COLOR}}
| {{enum|GL_ONE_MINUS_SRC_COLOR}}
| <!--Missing Equation-->
| (1, 1, 1) - (R<sub>s0</sub>, G<sub>s0</sub>, B<sub>s0</sub>)
| <!--Missing Equation-->
| 1 - A<sub>s0</sub>
|+
|-
| {{code|GL_DST_COLOR}}
| {{enum|GL_DST_COLOR}}
| <!--Missing Equation-->
| (R<sub>d</sub>, G<sub>d</sub>, B<sub>d</sub>)
| <!--Missing Equation-->
| A<sub>d</sub>
|+
|-
| {{code|GL_ONE_MINUS_DST_COLOR}}
| {{enum|GL_ONE_MINUS_DST_COLOR}}
| <!--Missing Equation-->
| (1, 1, 1) - (R<sub>d</sub>, G<sub>d</sub>, B<sub>d</sub>)
| <!--Missing Equation-->
| 1 - A<sub>d</sub>
|+
|-
| {{code|GL_SRC_ALPHA}}
| {{enum|GL_SRC_ALPHA}}
| <!--Missing Equation-->
| (A<sub>s0</sub>, A<sub>s0</sub>, A<sub>s0</sub>)
| <!--Missing Equation-->
| A<sub>s0</sub>
|+
|-
| {{code|GL_ONE_MINUS_SRC_ALPHA}}
| {{enum|GL_ONE_MINUS_SRC_ALPHA}}
| <!--Missing Equation-->
| (1, 1, 1) - (A<sub>s0</sub>, A<sub>s0</sub>, A<sub>s0</sub>)
| <!--Missing Equation-->
| 1 - A<sub>s0</sub>
|+
|-
| {{code|GL_DST_ALPHA}}
| {{enum|GL_DST_ALPHA}}
| <!--Missing Equation-->
| (A<sub>d</sub>, A<sub>d</sub>, A<sub>d</sub>)
| <!--Missing Equation-->
| A<sub>d</sub>
|+
|-
| {{code|GL_ONE_MINUS_DST_ALPHA}}
| {{enum|GL_ONE_MINUS_DST_ALPHA}}
| <!--Missing Equation-->
| (1, 1, 1) - (A<sub>d</sub>, A<sub>d</sub>, A<sub>d</sub>)
| <!--Missing Equation-->
| A<sub>d</sub>
|+
|-
| {{code|GL_CONSTANT_COLOR}}
| {{enum|GL_CONSTANT_COLOR}}
| <!--Missing Equation-->
| (R<sub>c</sub>, G<sub>c</sub>, B<sub>c</sub>)
| <!--Missing Equation-->
| A<sub>c</sub>
|+
|-
| {{code|GL_ONE_MINUS_CONSTANT_COLOR}}
| {{enum|GL_ONE_MINUS_CONSTANT_COLOR}}
| <!--Missing Equation-->
| (1, 1, 1) - (R<sub>c</sub>, G<sub>c</sub>, B<sub>c</sub>)
| <!--Missing Equation-->
| 1 - A<sub>c</sub>
|+
|-
| {{code|GL_CONSTANT_ALPHA}}
| {{enum|GL_CONSTANT_ALPHA}}
| <!--Missing Equation-->
| (A<sub>c</sub>, A<sub>c</sub>, A<sub>c</sub>)
| <!--Missing Equation-->
| A<sub>c</sub>
|+
|-
| {{code|GL_ONE_MINUS_CONSTANT_ALPHA}}
| {{enum|GL_ONE_MINUS_CONSTANT_ALPHA}}
| <!--Missing Equation-->
| (1, 1, 1) - (A<sub>c</sub>, A<sub>c</sub>, A<sub>c</sub>)
| <!--Missing Equation-->
| 1 - A<sub>c</sub>
|+
|-
| {{code|GL_SRC_ALPHA_SATURATE}}
| {{enum|GL_SRC_ALPHA_SATURATE}}
| <!--Missing Equation-->
| (i, i, i)
| <!--Missing Equation-->
| 1
|+
|-
| {{code|GL_SRC1_COLOR}}
| {{enum|GL_SRC1_COLOR}}
| <!--Missing Equation-->
| (R<sub>s1</sub>, G<sub>s1</sub>, B<sub>s1</sub>)
| <!--Missing Equation-->
| A<sub>s1</sub>
|+
|-
| {{code|GL_ONE_MINUS_SRC_COLOR}}
| {{enum|GL_ONE_MINUS_SRC_COLOR}}
| <!--Missing Equation-->
| (1, 1, 1) - (R<sub>s1</sub>, G<sub>s1</sub>, B<sub>s1</sub>)
| <!--Missing Equation-->
| 1 - A<sub>s1</sub>
|+
|-
| {{code|GL_SRC1_ALPHA}}
| {{enum|GL_SRC1_ALPHA}}
| <!--Missing Equation-->
| (A<sub>s1</sub>, A<sub>s1</sub>, A<sub>s1</sub>)
| <!--Missing Equation-->
| A<sub>s1</sub>
|+
|-
| {{code|GL_ONE_MINUS_SRC_ALPHA}}
| {{enum|GL_ONE_MINUS_SRC_ALPHA}}
| <!--Missing Equation-->
| (1, 1, 1) - (A<sub>s1</sub>, A<sub>s1</sub>, A<sub>s1</sub>)
| <!--Missing Equation-->
| 1 - A<sub>s1</sub>
|}
|}


In the table,
In the table,


<!--Missing Equation-->
<math>i = min(A_{s0}, (1 - A_d))</math>
 
 
 
To determine the blended RGBA values of a pixel, the system uses the following equations:
 
<!--Missing Equation--><!--Missing Equation--><!--Missing Equation--><!--Missing Equation-->
 
 
 
Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend factor equal to 0 reduces its multiplicand to 0. For example, when ''srcRGB'' is {{code|GL_SRC_ALPHA}}, ''dstRGB'' is {{code|GL_ONE_MINUS_SRC_ALPHA}}, and <!--Missing Equation--> is equal to <!--Missing Equation-->, the equations reduce to simple replacement:
 
<!--Missing Equation--><!--Missing Equation--><!--Missing Equation--><!--Missing Equation-->
 
 


Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend factor equal to 0 reduces its multiplicand to 0. For example, when {{param|srcRGB}} is {{enum|GL_SRC_ALPHA}}, {{param|dstRGB}} is {{enum|GL_ONE_MINUS_SRC_ALPHA}}, and A<sub>s0</sub> is equal to 1, the equations reduce to simple replacement:


<math>\begin{align}
R_d = R_{s0}\\
G_d = G_{s0}\\
B_d = B_{s0}\\
A_d = A_{s0}\\
\end{align}</math>


== Notes ==
== Notes ==


Incoming (source) alpha is correctly thought of as a material opacity, ranging from 1.0 (<!--Missing Equation-->), representing complete opacity, to 0.0 (0), representing complete transparency.
When more than one color buffer is enabled for drawing, the GL performs blending separately for each enabled buffer, using the contents of that buffer for destination color. (See {{apifunc|glDrawBuffer}}.)


When more than one color buffer is enabled for drawing, the GL performs blending separately for each enabled buffer, using the contents of that buffer for destination color. (See [[GLAPI/glDrawBuffer|glDrawBuffer]].)
When dual source blending is enabled (i.e., one of the blend factors requiring the second color input is used), the maximum number of enabled draw buffers is given by {{enum|GL_MAX_DUAL_SOURCE_DRAW_BUFFERS}}, which may be lower than {{enum|GL_MAX_DRAW_BUFFERS}}.
 
When dual source blending is enabled (i.e., one of the blend factors requiring the second color input is used), the maximum number of enabled draw buffers is given by {{code|GL_MAX_DUAL_SOURCE_DRAW_BUFFERS}}, which may be lower than {{code|GL_MAX_DRAW_BUFFERS}}.


== Errors ==
== Errors ==


{{code|GL_INVALID_ENUM}} is generated if either ''srcRGB'' or ''dstRGB'' is not an accepted value.
{{enum|GL_INVALID_ENUM}} is generated if either {{param|srcRGB}} or {{param|dstRGB}} is not an accepted value.


{{code|GL_INVALID_VALUE}} is generated by '''glBlendFuncSeparatei''' if ''buf'' is greater than or equal to the value of {{code|GL_MAX_DRAW_BUFFERS}}.
{{enum|GL_INVALID_VALUE}} is generated by '''glBlendFuncSeparatei''' if {{param|buf}} is greater than or equal to the value of {{enum|GL_MAX_DRAW_BUFFERS}}.


== Associated Gets ==
== Associated Gets ==


[[GLAPI/glGet|glGet]] with argument {{code|GL_BLEND_SRC_RGB}}
{{apifunc|glGet}} with argument {{enum|GL_BLEND_SRC_RGB}}


[[GLAPI/glGet|glGet]] with argument {{code|GL_BLEND_SRC_ALPHA}}
{{apifunc|glGet}} with argument {{enum|GL_BLEND_SRC_ALPHA}}


[[GLAPI/glGet|glGet]] with argument {{code|GL_BLEND_DST_RGB}}
{{apifunc|glGet}} with argument {{enum|GL_BLEND_DST_RGB}}


[[GLAPI/glGet|glGet]] with argument {{code|GL_BLEND_DST_ALPHA}}
{{apifunc|glGet}} with argument {{enum|GL_BLEND_DST_ALPHA}}


[[GLAPI/glIsEnabled|glIsEnabled]] with argument {{code|GL_BLEND}}
{{apifunc|glIsEnabled}} with argument {{enum|GL_BLEND}}




Line 173: Line 170:
== See Also ==
== See Also ==


[[GLAPI/glBlendColor|glBlendColor]], [[GLAPI/glBlendFunc|glBlendFunc]], [[GLAPI/glBlendEquation|glBlendEquation]], [[GLAPI/glClear|glClear]], [[GLAPI/glDrawBuffer|glDrawBuffer]], [[GLAPI/glEnable|glEnable]], [[GLAPI/glLogicOp|glLogicOp]], [[GLAPI/glStencilFunc|glStencilFunc]]
{{apifunc|glBlendColor}}, {{apifunc|glBlendEquationSeparate}}, {{apifunc|glDrawBuffer}}, {{apifunc|glDrawBuffers}}


== Copyright ==
== Copyright ==


Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see [http://oss.sgi.com/projects/FreeB/ http://oss.sgi.com/projects/FreeB/].
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see [https://khronos.org/registry/OpenGL-Refpages/LICENSES/LicenseRef-FreeB.txt LicenseRef-FreeB].
 


[[Category:API Reference 4]]
[[Category:Core API Ref Post Fragment Shader Operations|BlendFuncSeparate]]
[[Category:Core API Reference|BlendFuncSeparate]]

Latest revision as of 21:22, 5 February 2021

glBlendFuncSeparate
Core in version 4.6
Core since version 1.4

glBlendFuncSeparate: specify pixel arithmetic for RGB and alpha components separately

Function Definition

 void glBlendFunc(GLenum sfactor​, GLenum dfactor​);
 void glBlendFunci(GLuint buf​, GLenum sfactor​, GLenum dfactor​);
buf
For glBlendFunci, specifies the index of the draw buffer for which to set the blend function.
sfactor
Specifies how the red, green, blue, and alpha source blending factors are computed. The initial value is GL_ONE.
dfactor
Specifies how the red, green, blue, and alpha destination blending factors are computed. The initial value is GL_ZERO.

Function Definition

 void glBlendFuncSeparate(GLenum srcRGB​, GLenum dstRGB​, GLenum srcAlpha​, GLenum dstAlpha​);
 void glBlendFuncSeparatei(GLuint buf​, GLenum srcRGB​, GLenum dstRGB​, GLenum srcAlpha​, GLenum dstAlpha​);
buf
For glBlendFuncSeparatei, specifies the index of the draw buffer for which to set the blend functions.
srcRGB
Specifies how the red, green, and blue blending factors are computed. The initial value is GL_ONE.
dstRGB
Specifies how the red, green, and blue destination blending factors are computed. The initial value is GL_ZERO.
srcAlpha
Specified how the alpha source blending factor is computed. The initial value is GL_ONE.
dstAlpha
Specified how the alpha destination blending factor is computed. The initial value is GL_ZERO.

Description

Pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values). Blending is initially disabled. Use glEnable and glDisable with argument GL_BLEND to enable and disable blending.

glBlendFunc is equivalent to calling glBlendFuncSeparate with sfactor​ for both the srcRGB​ and srcAlpha​ parameters, and dfactor​ for both the dstRGB​ and dstAlpha​ parameters. glBlendFunci works the same way relative to glBlendFuncSeparatei.

glBlendFuncSeparate defines the operation of blending for all draw buffers when it is enabled. glBlendFuncSeparatei defines the operation of blending for a single draw buffer specified by buf​ when enabled for that draw buffer. srcRGB​ specifies which method is used to scale the source RGB-color components. dstRGB​ specifies which method is used to scale the destination RGB-color components. Likewise, srcAlpha​ specifies which method is used to scale the source alpha color component, and dstAlpha​ specifies which method is used to scale the destination alpha component. The possible methods are described in the following table. Each method defines four scale factors, one each for red, green, blue, and alpha.

In the table and in subsequent equations, first source, second source and destination color components are referred to as (Rs0, Gs0, Bs0, As0), (Rs1, Gs1, Bs1, As1) and (Rd, Gd, Bd, Ad), respectively. The color specified by glBlendColor is referred to as (Rc, Gc, Bc, Ac).

Source and destination scale factors are referred to as (sR, sG, sB, sA) and (dR, dG, dB, dA).

Parameter RGB Factor Alpha Factor
GL_ZERO (0, 0, 0) 0
GL_ONE (1, 1, 1) 1
GL_SRC_COLOR (Rs0, Gs0, Bs0) As0
GL_ONE_MINUS_SRC_COLOR (1, 1, 1) - (Rs0, Gs0, Bs0) 1 - As0
GL_DST_COLOR (Rd, Gd, Bd) Ad
GL_ONE_MINUS_DST_COLOR (1, 1, 1) - (Rd, Gd, Bd) 1 - Ad
GL_SRC_ALPHA (As0, As0, As0) As0
GL_ONE_MINUS_SRC_ALPHA (1, 1, 1) - (As0, As0, As0) 1 - As0
GL_DST_ALPHA (Ad, Ad, Ad) Ad
GL_ONE_MINUS_DST_ALPHA (1, 1, 1) - (Ad, Ad, Ad) Ad
GL_CONSTANT_COLOR (Rc, Gc, Bc) Ac
GL_ONE_MINUS_CONSTANT_COLOR (1, 1, 1) - (Rc, Gc, Bc) 1 - Ac
GL_CONSTANT_ALPHA (Ac, Ac, Ac) Ac
GL_ONE_MINUS_CONSTANT_ALPHA (1, 1, 1) - (Ac, Ac, Ac) 1 - Ac
GL_SRC_ALPHA_SATURATE (i, i, i) 1
GL_SRC1_COLOR (Rs1, Gs1, Bs1) As1
GL_ONE_MINUS_SRC_COLOR (1, 1, 1) - (Rs1, Gs1, Bs1) 1 - As1
GL_SRC1_ALPHA (As1, As1, As1) As1
GL_ONE_MINUS_SRC_ALPHA (1, 1, 1) - (As1, As1, As1) 1 - As1

In the table,

$ i=min(A_{s0},(1-A_{d})) $

Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend factor equal to 0 reduces its multiplicand to 0. For example, when srcRGB​ is GL_SRC_ALPHA, dstRGB​ is GL_ONE_MINUS_SRC_ALPHA, and As0 is equal to 1, the equations reduce to simple replacement:

$ {\begin{aligned}R_{d}=R_{s0}\\G_{d}=G_{s0}\\B_{d}=B_{s0}\\A_{d}=A_{s0}\\\end{aligned}} $

Notes

When more than one color buffer is enabled for drawing, the GL performs blending separately for each enabled buffer, using the contents of that buffer for destination color. (See glDrawBuffer.)

When dual source blending is enabled (i.e., one of the blend factors requiring the second color input is used), the maximum number of enabled draw buffers is given by GL_MAX_DUAL_SOURCE_DRAW_BUFFERS, which may be lower than GL_MAX_DRAW_BUFFERS.

Errors

GL_INVALID_ENUM is generated if either srcRGB​ or dstRGB​ is not an accepted value.

GL_INVALID_VALUE is generated by glBlendFuncSeparatei if buf​ is greater than or equal to the value of GL_MAX_DRAW_BUFFERS.

Associated Gets

glGet with argument GL_BLEND_SRC_RGB

glGet with argument GL_BLEND_SRC_ALPHA

glGet with argument GL_BLEND_DST_RGB

glGet with argument GL_BLEND_DST_ALPHA

glIsEnabled with argument GL_BLEND


See Also

glBlendColor, glBlendEquationSeparate, glDrawBuffer, glDrawBuffers

Copyright

Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see LicenseRef-FreeB.