rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man3 / glSampleMaski.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="glSampleMaski">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2010</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>glSampleMaski</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glSampleMaski</refname>\r
17 <refpurpose>set the value of a sub-word of the sample mask</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glSampleMaski</function></funcdef>\r
23 <paramdef>GLuint <parameter>maskNumber</parameter></paramdef>\r
24 <paramdef>GLbitfield <parameter>mask</parameter></paramdef>\r
25 </funcprototype>\r
26 </funcsynopsis>\r
27 </refsynopsisdiv>\r
28 <refsect1 id="parameters"><title>Parameters</title>\r
29 <variablelist>\r
30 <varlistentry>\r
31 <term><parameter>maskNumber</parameter></term>\r
32 <listitem>\r
33 <para>\r
34 Specifies which 32-bit sub-word of the sample mask to update.\r
35 </para>\r
36 </listitem>\r
37 </varlistentry>\r
38 <varlistentry>\r
39 <term><parameter>mask</parameter></term>\r
40 <listitem>\r
41 <para>\r
42 Specifies the new value of the mask sub-word.\r
43 </para>\r
44 </listitem>\r
45 </varlistentry>\r
46 </variablelist>\r
47 </refsect1>\r
48 <refsect1 id="description"><title>Description</title>\r
49 <para>\r
50 <function>glSampleMaski</function> sets one 32-bit sub-word of the multi-word sample mask, <constant>GL_SAMPLE_MASK_VALUE</constant>.\r
51 </para>\r
52 <para>\r
53 <parameter>maskIndex</parameter> specifies which 32-bit sub-word of the sample mask to update, and <parameter>mask</parameter> specifies\r
54 the new value to use for that sub-word. <parameter>maskIndex</parameter> must be less than the value of\r
55 <constant>GL_MAX_SAMPLE_MASK_WORDS</constant>. Bit <emphasis>B</emphasis> of mask word <emphasis>M</emphasis> corresponds to sample\r
56 32 x <emphasis>M</emphasis> + <emphasis>B</emphasis>.\r
57 </para>\r
58 </refsect1>\r
59 <refsect1 id="notes"><title>Notes</title>\r
60 <para>\r
61 <function>glSampleMaski</function> is available only if the GL version is 3.2 or greater, or if the <code>ARB_texture_multisample</code>\r
62 extension is supported.\r
63 </para>\r
64 </refsect1>\r
65 <refsect1 id="errors"><title>Errors</title>\r
66 <para>\r
67 <constant>GL_INVALID_VALUE</constant> is generated if <parameter>maskIndex</parameter> is greater than or equal to the value\r
68 of <constant>GL_MAX_SAMPLE_MASK_WORDS</constant>.\r
69 </para>\r
70 </refsect1>\r
71 <refsect1 id="seealso"><title>See Also</title>\r
72 <para>\r
73 <citerefentry><refentrytitle>glGenRenderbuffers</refentrytitle></citerefentry>,\r
74 <citerefentry><refentrytitle>glBindRenderbuffer</refentrytitle></citerefentry>,\r
75 <citerefentry><refentrytitle>glRenderbufferStorageMultisample</refentrytitle></citerefentry>,\r
76 <citerefentry><refentrytitle>glFramebufferRenderbuffer</refentrytitle></citerefentry>,\r
77 <citerefentry><refentrytitle>glDeleteRenderbuffers</refentrytitle></citerefentry>\r
78 </para>\r
79 </refsect1>\r
80 <refsect1 id="Copyright"><title>Copyright</title>\r
81 <para>\r
82 Copyright <trademark class="copyright"></trademark> 2010 Khronos Group. \r
83 This material may be distributed subject to the terms and conditions set forth in \r
84 the Open Publication License, v 1.0, 8 June 1999.\r
85 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
86 </para>\r
87 </refsect1>\r
88</refentry>\r