2014-03-28 19:06:55 +00:00
|
|
|
<!DOCTYPE refentry [ <!ENTITY % mathent SYSTEM "math.ent"> %mathent; ]>
|
|
|
|
|
|
|
|
<!-- Converted by db4-upgrade version 1.1 -->
|
|
|
|
|
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="glSampleCoverage">
|
|
|
|
<info>
|
2013-11-03 11:43:50 +00:00
|
|
|
<copyright>
|
|
|
|
<year>1991-2006</year>
|
|
|
|
<holder>Silicon Graphics, Inc.</holder>
|
|
|
|
</copyright>
|
2013-12-15 21:32:32 +00:00
|
|
|
<copyright>
|
|
|
|
<year>2010-2013</year>
|
|
|
|
<holder>Khronos Group</holder>
|
|
|
|
</copyright>
|
2014-03-28 19:06:55 +00:00
|
|
|
</info>
|
2009-03-08 00:46:58 +00:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>glSampleCoverage</refentrytitle>
|
|
|
|
<manvolnum>3G</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>glSampleCoverage</refname>
|
|
|
|
<refpurpose>specify multisample coverage parameters</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv><title>C Specification</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>void <function>glSampleCoverage</function></funcdef>
|
2013-10-23 18:17:08 +00:00
|
|
|
<paramdef>GLfloat <parameter>value</parameter></paramdef>
|
2009-03-08 00:46:58 +00:00
|
|
|
<paramdef>GLboolean <parameter>invert</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="parameters"><title>Parameters</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>value</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specify a single floating-point sample coverage value. The value is
|
2013-11-03 11:43:50 +00:00
|
|
|
clamped to the range
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
|
2010-11-21 14:34:29 +00:00
|
|
|
<!-- eqn: [0 ,1]: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close="]">
|
|
|
|
<mml:mn>0</mml:mn>
|
|
|
|
<mml:mn>1</mml:mn>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>.
|
|
|
|
The initial value is 1.0.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>invert</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specify a single boolean value representing if the coverage masks should be
|
|
|
|
inverted. <constant>GL_TRUE</constant> and <constant>GL_FALSE</constant> are accepted. The initial value
|
|
|
|
is <constant>GL_FALSE</constant>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="description"><title>Description</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<para>
|
|
|
|
Multisampling samples a pixel multiple times at various
|
|
|
|
implementation-dependent subpixel locations to generate antialiasing
|
|
|
|
effects. Multisampling transparently antialiases points, lines, polygons,
|
2010-11-21 14:34:29 +00:00
|
|
|
and images if it is enabled.
|
2009-03-08 00:46:58 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<parameter>value</parameter> is used in constructing a temporary mask used in determining which
|
|
|
|
samples will be used in resolving the final fragment color. This mask is
|
|
|
|
bitwise-anded with the coverage mask generated from the multisampling
|
|
|
|
computation. If the <parameter>invert</parameter> flag is set, the temporary mask is inverted
|
|
|
|
(all bits flipped) and then the bitwise-and is computed.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
If an implementation does not have any multisample buffers available, or
|
|
|
|
multisampling is disabled, rasterization occurs with only a single sample
|
|
|
|
computing a pixel's final RGB color.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Provided an implementation supports multisample buffers, and multisampling
|
|
|
|
is enabled, then a pixel's final color is generated by combining several
|
|
|
|
samples per pixel. Each sample contains color, depth, and stencil
|
|
|
|
information, allowing those operations to be performed on each sample.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="notes"><title>Notes</title>
|
2013-10-23 18:17:08 +00:00
|
|
|
<para>
|
|
|
|
The type of the <parameter>value</parameter> parameter was
|
|
|
|
changed from GLclampf to GLfloat. This change is transparent
|
|
|
|
to user code and is described in detail on the
|
|
|
|
<citerefentry><refentrytitle>removedTypes</refentrytitle></citerefentry>
|
|
|
|
page.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="associatedgets"><title>Associated Gets</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_SAMPLE_COVERAGE_VALUE</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_SAMPLE_COVERAGE_INVERT</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glIsEnabled</refentrytitle></citerefentry> with argument <constant>GL_MULTISAMPLE</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glIsEnabled</refentrytitle></citerefentry> with argument <constant>GL_SAMPLE_ALPHA_TO_COVERAGE</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glIsEnabled</refentrytitle></citerefentry> with argument <constant>GL_SAMPLE_ALPHA_TO_ONE</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glIsEnabled</refentrytitle></citerefentry> with argument <constant>GL_SAMPLE_COVERAGE</constant>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="seealso"><title>See Also</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<para>
|
2013-10-23 18:17:08 +00:00
|
|
|
<citerefentry><refentrytitle>glEnable</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>removedTypes</refentrytitle></citerefentry>
|
2009-03-08 00:46:58 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="Copyright"><title>Copyright</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<para>
|
2014-03-28 19:06:55 +00:00
|
|
|
Copyright <trademark class="copyright"/> 1991-2006 Silicon Graphics, Inc.
|
|
|
|
Copyright <trademark class="copyright"/> 2010-2013 Khronos Group.
|
2013-12-15 21:32:32 +00:00
|
|
|
This document is licensed under the SGI Free Software B License.
|
|
|
|
For details, see
|
2014-03-28 19:06:55 +00:00
|
|
|
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</link>.
|
2009-03-08 00:46:58 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|