Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"> | |
4 | <refentry id="glBlendColor"> | |
5 | <refmeta> | |
6 | <refmetainfo> | |
7 | <copyright> | |
8 | <year>1991-2006</year> | |
9 | <holder>Silicon Graphics, Inc.</holder> | |
10 | </copyright> | |
11 | </refmetainfo> | |
12 | <refentrytitle>glBlendColor</refentrytitle> | |
13 | <manvolnum>3G</manvolnum> | |
14 | </refmeta> | |
15 | <refnamediv> | |
16 | <refname>glBlendColor</refname> | |
17 | <refpurpose>set the blend color</refpurpose> | |
18 | </refnamediv> | |
19 | <refsynopsisdiv><title>C Specification</title> | |
20 | <funcsynopsis> | |
21 | <funcprototype> | |
22 | <funcdef>void <function>glBlendColor</function></funcdef> | |
23 | <paramdef>GLclampf <parameter>red</parameter></paramdef> | |
24 | <paramdef>GLclampf <parameter>green</parameter></paramdef> | |
25 | <paramdef>GLclampf <parameter>blue</parameter></paramdef> | |
26 | <paramdef>GLclampf <parameter>alpha</parameter></paramdef> | |
27 | </funcprototype> | |
28 | </funcsynopsis> | |
29 | </refsynopsisdiv> | |
30 | <!-- eqn: ignoring delim $$ --> | |
31 | <refsect1 id="parameters"><title>Parameters</title> | |
32 | <variablelist> | |
33 | <varlistentry> | |
34 | <term><parameter>red</parameter></term> | |
35 | <term><parameter>green</parameter></term> | |
36 | <term><parameter>blue</parameter></term> | |
37 | <term><parameter>alpha</parameter></term> | |
38 | <listitem> | |
39 | <para> | |
40 | specify the components of <constant>GL_BLEND_COLOR</constant> | |
41 | </para> | |
42 | </listitem> | |
43 | </varlistentry> | |
44 | </variablelist> | |
45 | </refsect1> | |
46 | <refsect1 id="description"><title>Description</title> | |
47 | <para> | |
48 | The <constant>GL_BLEND_COLOR</constant> may be used to calculate the source and destination | |
49 | blending factors. The color components are clamped to the range | |
50 | <inlineequation><mml:math> | |
51 | <!-- eqn: [0,1]: --> | |
52 | <mml:mfenced open="[" close="]"> | |
53 | <mml:mn>0</mml:mn> | |
54 | <mml:mn>1</mml:mn> | |
55 | </mml:mfenced> | |
56 | </mml:math></inlineequation> | |
57 | before being stored. See <citerefentry><refentrytitle>glBlendFunc</refentrytitle></citerefentry> for a complete description of the | |
58 | blending operations. | |
59 | Initially the <constant>GL_BLEND_COLOR</constant> is set to (0, 0, 0, 0). | |
60 | </para> | |
61 | </refsect1> | |
62 | <refsect1 id="associatedgets"><title>Associated Gets</title> | |
63 | <para> | |
64 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with an argument of <constant>GL_BLEND_COLOR</constant> | |
65 | </para> | |
66 | </refsect1> | |
67 | <refsect1 id="seealso"><title>See Also</title> | |
68 | <para> | |
69 | <citerefentry><refentrytitle>glBlendEquation</refentrytitle></citerefentry>, | |
70 | <citerefentry><refentrytitle>glBlendFunc</refentrytitle></citerefentry>, | |
71 | <citerefentry><refentrytitle>glGetString</refentrytitle></citerefentry> | |
72 | </para> | |
73 | </refsect1> | |
74 | <refsect1 id="Copyright"><title>Copyright</title> | |
75 | <para> | |
76 | Copyright <trademark class="copyright"></trademark> 1991-2006 | |
77 | Silicon Graphics, Inc. This document is licensed under the SGI | |
78 | Free Software B License. For details, see | |
79 | <ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>. | |
80 | </para> | |
81 | </refsect1> | |
82 | </refentry> |