rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man3 / glRenderbufferStorage.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="glRenderbufferStorage">\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>glRenderbufferStorage</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glRenderbufferStorage</refname>\r
17 <refpurpose>establish data storage, format and dimensions of a renderbuffer object's image</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glRenderbufferStorage</function></funcdef>\r
23 <paramdef>GLenum <parameter>target</parameter></paramdef>\r
24 <paramdef>GLenum <parameter>internalformat</parameter></paramdef>\r
25 <paramdef>GLsizei <parameter>width</parameter></paramdef>\r
26 <paramdef>GLsizei <parameter>height</parameter></paramdef>\r
27 </funcprototype>\r
28 </funcsynopsis>\r
29 </refsynopsisdiv>\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 a binding to which the target of the allocation and must be <constant>GL_RENDERBUFFER</constant>.\r
37 </para>\r
38 </listitem>\r
39 </varlistentry>\r
40 <varlistentry>\r
41 <term><parameter>internalformat</parameter></term>\r
42 <listitem>\r
43 <para>\r
44 Specifies the internal format to use for the renderbuffer object's image.\r
45 </para>\r
46 </listitem>\r
47 </varlistentry>\r
48 <varlistentry>\r
49 <term><parameter>width</parameter></term>\r
50 <listitem>\r
51 <para>\r
52 Specifies the width of the renderbuffer, in pixels.\r
53 </para>\r
54 </listitem>\r
55 </varlistentry>\r
56 <varlistentry>\r
57 <term><parameter>height</parameter></term>\r
58 <listitem>\r
59 <para>\r
60 Specifies the height of the renderbuffer, in pixels.\r
61 </para>\r
62 </listitem>\r
63 </varlistentry>\r
64 </variablelist>\r
65 </refsect1>\r
66 <refsect1 id="description"><title>Description</title>\r
67 <para>\r
68 <function>glRenderbufferStorage</function> is equivalent to calling\r
69 <citerefentry><refentrytitle>glRenderbufferStorageMultisample</refentrytitle></citerefentry> with the\r
70 <parameter>samples</parameter> set to zero.\r
71 </para>\r
72 <para>\r
73 The target of the operation, specified by <parameter>target</parameter> must be <constant>GL_RENDERBUFFER</constant>.\r
74 <parameter>internalformat</parameter> specifies the internal format to be used for the renderbuffer object's storage and\r
75 must be a color-renderable, depth-renderable, or stencil-renderable format.\r
76 <parameter>width</parameter> and <parameter>height</parameter> are the dimensions, in pixels, of the renderbuffer.\r
77 Both <parameter>width</parameter> and <parameter>height</parameter> must be less than or equal to the value of\r
78 <constant>GL_MAX_RENDERBUFFER_SIZE</constant>.\r
79 </para>\r
80 <para>\r
81 Upon success, <function>glRenderbufferStorage</function> deletes any existing data store for the renderbuffer\r
82 image and the contents of the data store after calling <function>glRenderbufferStorage</function> are undefined.\r
83 </para>\r
84 </refsect1>\r
85 <refsect1 id="errors"><title>Errors</title>\r
86 <para>\r
87 <constant>GL_INVALID_ENUM</constant> is generated if <parameter>target</parameter> is not <constant>GL_RENDERBUFFER</constant>.\r
88 </para>\r
89 <para>\r
90 <constant>GL_INVALID_VALUE</constant> is generated if either of <parameter>width</parameter> or <parameter>height</parameter> is negative,\r
91 or greater than the value of <constant>GL_MAX_RENDERBUFFER_SIZE</constant>.\r
92 </para>\r
93 <para>\r
94 <constant>GL_INVALID_ENUM</constant> is generated if <parameter>internalformat</parameter> is not a color-renderable, depth-renderable,\r
95 or stencil-renderable format.\r
96 </para>\r
97 <para>\r
98 <constant>GL_OUT_OF_MEMORY</constant> is generated if the GL is unable to create a data store of the requested size.\r
99 </para>\r
100 </refsect1>\r
101 <refsect1 id="seealso"><title>See Also</title>\r
102 <para>\r
103 <citerefentry><refentrytitle>glGenRenderbuffers</refentrytitle></citerefentry>,\r
104 <citerefentry><refentrytitle>glBindRenderbuffer</refentrytitle></citerefentry>,\r
105 <citerefentry><refentrytitle>glRenderbufferStorageMultisample</refentrytitle></citerefentry>,\r
106 <citerefentry><refentrytitle>glFramebufferRenderbuffer</refentrytitle></citerefentry>,\r
107 <citerefentry><refentrytitle>glDeleteRenderbuffers</refentrytitle></citerefentry>\r
108 </para>\r
109 </refsect1>\r
110 <refsect1 id="Copyright"><title>Copyright</title>\r
111 <para>\r
112 Copyright <trademark class="copyright"></trademark> 2010 Khronos Group. \r
113 This material may be distributed subject to the terms and conditions set forth in \r
114 the Open Publication License, v 1.0, 8 June 1999.\r
115 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
116 </para>\r
117 </refsect1>\r
118</refentry>\r