rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man3 / glFlushMappedBufferRange.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="glFlushMappedBufferRange">\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>glFlushMappedBufferRange</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glFlushMappedBufferRange</refname>\r
17 <refpurpose>indicate modifications to a range of a mapped buffer</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glFlushMappedBufferRange</function></funcdef>\r
23 <paramdef>GLenum <parameter>target</parameter></paramdef>\r
24 <paramdef>GLintptr <parameter>offset</parameter></paramdef>\r
25 <paramdef>GLsizeiptr <parameter>length</parameter></paramdef>\r
26 </funcprototype>\r
27 </funcsynopsis>\r
28 </refsynopsisdiv>\r
29 <!-- eqn: ignoring delim $$ -->\r
30 <refsect1 id="parameters"><title>Parameters</title>\r
31 <variablelist>\r
32 <varlistentry>\r
33 <term><parameter>target</parameter></term>\r
34 <listitem>\r
35 <para>\r
36 Specifies the target of the flush operation. <parameter>target</parameter> must be <constant>GL_ARRAY_BUFFER</constant>,\r
37 <constant>GL_COPY_READ_BUFFER</constant>, <constant>GL_COPY_WRITE_BUFFER</constant>, <constant>GL_ELEMENT_ARRAY_BUFFER</constant>,\r
38 <constant>GL_PIXEL_PACK_BUFFER</constant>, <constant>GL_PIXEL_UNPACK_BUFFER</constant>, <constant>GL_TEXTURE_BUFFER</constant>,\r
39 <constant>GL_TRANSFORM_FEEDBACK_BUFFER</constant>, or <constant>GL_UNIFORM_BUFFER</constant>.\r
40 </para>\r
41 </listitem>\r
42 </varlistentry>\r
43 <varlistentry>\r
44 <term><parameter>offset</parameter></term>\r
45 <listitem>\r
46 <para>\r
47 Specifies the start of the buffer subrange, in basic machine units.\r
48 </para>\r
49 </listitem>\r
50 </varlistentry>\r
51 <varlistentry>\r
52 <term><parameter>length</parameter></term>\r
53 <listitem>\r
54 <para>\r
55 Specifies the length of the buffer subrange, in basic machine units.\r
56 </para>\r
57 </listitem>\r
58 </varlistentry>\r
59 </variablelist>\r
60 </refsect1>\r
61 <refsect1 id="description"><title>Description</title>\r
62 <para>\r
63 <function>glFlushMappedBufferRange</function> indicates that modifications have been made to a range of a mapped buffer.\r
64 The buffer must previously have been mapped with the <constant>GL_MAP_FLUSH_EXPLICIT</constant> flag. <parameter>offset</parameter>\r
65 and <parameter>length</parameter> indicate the modified subrange of the mapping, in basic units. The specified subrange to flush\r
66 is relative to the start of the currently mapped range of the buffer. <function>glFlushMappedBufferRange</function> may be called\r
67 multiple times to indicate distinct subranges of the mapping which require flushing.\r
68 </para>\r
69 </refsect1>\r
70 <refsect1 id="errors"><title>Errors</title>\r
71 <para>\r
72 <constant>GL_INVALID_VALUE</constant> is generated if <parameter>offset</parameter> or <parameter>length</parameter>\r
73 is negative, or if <parameter>offset</parameter> + <parameter>length</parameter> exceeds the size of the mapping.\r
74 </para>\r
75 <para>\r
76 <constant>GL_INVALID_OPERATION</constant> is generated if zero is bound to <parameter>target</parameter>.\r
77 </para>\r
78 <para>\r
79 <constant>GL_INVALID_OPERATION</constant> is generated if the buffer bound to <parameter>target</parameter> is not\r
80 mapped, or is mapped without the <constant>GL_MAP_FLUSH_EXPLICIT</constant> flag.\r
81 </para>\r
82 </refsect1>\r
83 <refsect1 id="seealso"><title>See Also</title>\r
84 <para>\r
85 <citerefentry><refentrytitle>glMapBufferRange</refentrytitle></citerefentry>,\r
86 <citerefentry><refentrytitle>glMapBuffer</refentrytitle></citerefentry>,\r
87 <citerefentry><refentrytitle>glUnmapBuffer</refentrytitle></citerefentry>\r
88 </para>\r
89 </refsect1>\r
90 <refsect1 id="Copyright"><title>Copyright</title>\r
91 <para>\r
92 Copyright <trademark class="copyright"></trademark> 2010 Khronos Group. \r
93 This material may be distributed subject to the terms and conditions set forth in \r
94 the Open Publication License, v 1.0, 8 June 1999.\r
95 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
96 </para>\r
97 </refsect1>\r
98</refentry>\r