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="glPixelStorei">
|
|
|
|
<info>
|
2013-11-03 11:43:50 +00:00
|
|
|
<copyright>
|
|
|
|
<year>1991-2006</year>
|
|
|
|
<holder>Silicon Graphics, Inc.</holder>
|
|
|
|
</copyright>
|
|
|
|
<copyright>
|
2014-03-28 19:06:55 +00:00
|
|
|
<year>2010-2014</year>
|
2013-11-03 11:43:50 +00:00
|
|
|
<holder>Khronos Group</holder>
|
|
|
|
</copyright>
|
2014-03-28 19:06:55 +00:00
|
|
|
</info>
|
2009-03-08 00:46:58 +00:00
|
|
|
<refmeta>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refentrytitle>glPixelStorei</refentrytitle>
|
2009-03-08 00:46:58 +00:00
|
|
|
<manvolnum>3G</manvolnum>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refname>glPixelStorei</refname>
|
2009-03-08 00:46:58 +00:00
|
|
|
<refpurpose>set pixel storage modes</refpurpose>
|
|
|
|
</refnamediv>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<title>C Specification</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>void <function>glPixelStorei</function></funcdef>
|
|
|
|
<paramdef>GLenum <parameter>pname</parameter></paramdef>
|
|
|
|
<paramdef>GLint <parameter>param</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>pname</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies the symbolic name of the parameter to be set.
|
|
|
|
Six values affect the packing of pixel data into memory:
|
|
|
|
<constant>GL_PACK_ROW_LENGTH</constant>,
|
|
|
|
<constant>GL_PACK_IMAGE_HEIGHT</constant>,
|
|
|
|
<constant>GL_PACK_SKIP_PIXELS</constant>,
|
|
|
|
<constant>GL_PACK_SKIP_ROWS</constant>,
|
|
|
|
<constant>GL_PACK_SKIP_IMAGES</constant>, and
|
|
|
|
<constant>GL_PACK_ALIGNMENT</constant>.
|
|
|
|
Six more affect the unpacking of pixel data <emphasis>from</emphasis> memory:
|
|
|
|
<constant>GL_UNPACK_ROW_LENGTH</constant>,
|
|
|
|
<constant>GL_UNPACK_IMAGE_HEIGHT</constant>,
|
|
|
|
<constant>GL_UNPACK_SKIP_PIXELS</constant>,
|
|
|
|
<constant>GL_UNPACK_SKIP_ROWS</constant>,
|
|
|
|
<constant>GL_UNPACK_SKIP_IMAGES</constant>, and
|
|
|
|
<constant>GL_UNPACK_ALIGNMENT</constant>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>param</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies the value that <parameter>pname</parameter> is set to.
|
|
|
|
</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>
|
2014-03-28 19:06:55 +00:00
|
|
|
<function>glPixelStorei</function> sets pixel storage modes that affect the operation of subsequent
|
2010-11-21 14:34:29 +00:00
|
|
|
<citerefentry><refentrytitle>glReadPixels</refentrytitle></citerefentry> as well as the unpacking of
|
2014-03-28 19:06:55 +00:00
|
|
|
texture patterns (see <citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexSubImage2D</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexSubImage3D</refentrytitle></citerefentry>).
|
2009-03-08 00:46:58 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<parameter>pname</parameter> is a symbolic constant indicating the parameter to be set, and
|
|
|
|
<parameter>param</parameter> is the new value. Six of the twelve storage parameters affect
|
|
|
|
how pixel data is returned to client memory.
|
|
|
|
They are as follows:
|
|
|
|
</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><constant>GL_PACK_ROW_LENGTH</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
If greater than 0,
|
|
|
|
<constant>GL_PACK_ROW_LENGTH</constant> defines the number of pixels in a row.
|
2013-11-03 11:43:50 +00:00
|
|
|
If the first pixel of a row is placed at location
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">p</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
in memory,
|
|
|
|
then the location of the first pixel of the next row is obtained by skipping
|
|
|
|
</para>
|
|
|
|
<para>
|
2014-03-28 19:06:55 +00:00
|
|
|
<informalequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
|
2010-11-21 14:34:29 +00:00
|
|
|
<!-- eqn: k = left { lpile { n l above {a over s} left ceiling { s n l } over a right ceiling} lpile {s >= a above s < a }: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mfenced open="{" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
2013-11-03 11:43:50 +00:00
|
|
|
<mml:mfenced open="⌈" close="⌉">
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></informalequation>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
components or indices,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices in a pixel,
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">l</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of pixels in a row
|
|
|
|
(<constant>GL_PACK_ROW_LENGTH</constant> if it is greater than 0,
|
2013-11-03 11:43:50 +00:00
|
|
|
the
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">width</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
argument to the pixel routine otherwise),
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">a</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the value of <constant>GL_PACK_ALIGNMENT</constant>, and
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the size, in bytes, of a single component
|
2013-11-03 11:43:50 +00:00
|
|
|
(if
|
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: a < s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>,
|
2013-11-03 11:43:50 +00:00
|
|
|
then it is as if
|
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: a = s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>).
|
|
|
|
In the case of 1-bit values,
|
|
|
|
the location of the next row is obtained by skipping
|
|
|
|
</para>
|
|
|
|
<para>
|
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: k = 8 a left ceiling { n l } over { 8 a } right ceiling: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mn>8</mml:mn>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
2013-11-03 11:43:50 +00:00
|
|
|
<mml:mfenced open="⌈" close="⌉">
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mn>8</mml:mn>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
components or indices.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The word <emphasis>component</emphasis> in this description refers to the nonindex values
|
|
|
|
red,
|
|
|
|
green,
|
|
|
|
blue,
|
|
|
|
alpha,
|
|
|
|
and depth.
|
|
|
|
Storage format <constant>GL_RGB</constant>,
|
|
|
|
for example,
|
|
|
|
has three components per pixel:
|
|
|
|
first red,
|
|
|
|
then green,
|
|
|
|
and finally blue.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><constant>GL_PACK_IMAGE_HEIGHT</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
If greater than 0,
|
|
|
|
<constant>GL_PACK_IMAGE_HEIGHT</constant> defines the number of pixels in an image
|
|
|
|
three-dimensional texture volume, where ``image'' is defined by all pixels
|
|
|
|
sharing the same third dimension index.
|
2013-11-03 11:43:50 +00:00
|
|
|
If the first pixel of a row is placed at location
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">p</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
in memory,
|
|
|
|
then the location of the first pixel of the next row is obtained by skipping
|
|
|
|
</para>
|
|
|
|
<para>
|
2014-03-28 19:06:55 +00:00
|
|
|
<informalequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
|
2010-11-21 14:34:29 +00:00
|
|
|
<!-- eqn: k = left { lpile { n l h above {a over s} left ceiling { s n l h } over a right ceiling} lpile {s >= a above s < a }: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mfenced open="{" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">h</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
2013-11-03 11:43:50 +00:00
|
|
|
<mml:mfenced open="⌈" close="⌉">
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">h</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></informalequation>
|
|
|
|
</para>
|
|
|
|
<para>
|
2013-11-03 11:43:50 +00:00
|
|
|
components or indices, where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices
|
2013-11-03 11:43:50 +00:00
|
|
|
in a pixel,
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">l</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of pixels in a row
|
|
|
|
(<constant>GL_PACK_ROW_LENGTH</constant> if it is greater than 0, the
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">width</mml:mi></mml:math></inlineequation>
|
2013-11-03 11:43:50 +00:00
|
|
|
argument to <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry> otherwise),
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">h</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of
|
|
|
|
rows in a pixel image (<constant>GL_PACK_IMAGE_HEIGHT</constant> if it is greater than
|
2013-11-03 11:43:50 +00:00
|
|
|
0, the
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">height</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
argument to the <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry> routine otherwise),
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">a</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the value of
|
2013-11-03 11:43:50 +00:00
|
|
|
<constant>GL_PACK_ALIGNMENT</constant>, and
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the size, in bytes, of a single
|
2013-11-03 11:43:50 +00:00
|
|
|
component (if
|
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: a < s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>,
|
2013-11-03 11:43:50 +00:00
|
|
|
then it is as if
|
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: a = s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The word <emphasis>component</emphasis> in this description refers to the nonindex values
|
|
|
|
red,
|
|
|
|
green,
|
|
|
|
blue,
|
|
|
|
alpha,
|
|
|
|
and depth.
|
|
|
|
Storage format <constant>GL_RGB</constant>,
|
|
|
|
for example,
|
|
|
|
has three components per pixel:
|
|
|
|
first red,
|
|
|
|
then green,
|
|
|
|
and finally blue.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><constant>GL_PACK_SKIP_PIXELS</constant>, <constant>GL_PACK_SKIP_ROWS</constant>, and <constant>GL_PACK_SKIP_IMAGES</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
These values are provided as a convenience to the programmer;
|
|
|
|
they provide no functionality that cannot be duplicated simply by
|
|
|
|
incrementing the pointer passed to <citerefentry><refentrytitle>glReadPixels</refentrytitle></citerefentry>.
|
2013-11-03 11:43:50 +00:00
|
|
|
Setting <constant>GL_PACK_SKIP_PIXELS</constant> to
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">i</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is equivalent to incrementing
|
2013-11-03 11:43:50 +00:00
|
|
|
the pointer by
|
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: i n: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">i</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
components or indices,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices in each pixel.
|
2013-11-03 11:43:50 +00:00
|
|
|
Setting <constant>GL_PACK_SKIP_ROWS</constant> to
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">j</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is equivalent to incrementing
|
2013-11-03 11:43:50 +00:00
|
|
|
the pointer by
|
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: j m: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">j</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">m</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
components or indices,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">m</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices per row,
|
|
|
|
as just computed in the <constant>GL_PACK_ROW_LENGTH</constant> section.
|
2013-11-03 11:43:50 +00:00
|
|
|
Setting <constant>GL_PACK_SKIP_IMAGES</constant> to
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">k</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is equivalent to incrementing
|
2013-11-03 11:43:50 +00:00
|
|
|
the pointer by
|
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: k p: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">p</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">p</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices
|
|
|
|
per image, as computed in the <constant>GL_PACK_IMAGE_HEIGHT</constant> section.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><constant>GL_PACK_ALIGNMENT</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies the alignment requirements for the start of each pixel row in memory.
|
|
|
|
The allowable values are
|
|
|
|
1 (byte-alignment),
|
|
|
|
2 (rows aligned to even-numbered bytes),
|
|
|
|
4 (word-alignment), and
|
|
|
|
8 (rows start on double-word boundaries).
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<para>
|
|
|
|
The other six of the twelve storage parameters affect how pixel data is
|
|
|
|
read from client memory.
|
2010-11-21 14:34:29 +00:00
|
|
|
These values are significant for
|
2009-03-08 00:46:58 +00:00
|
|
|
<citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry>,
|
2010-11-21 14:34:29 +00:00
|
|
|
<citerefentry><refentrytitle>glTexSubImage2D</refentrytitle></citerefentry>, and
|
|
|
|
<citerefentry><refentrytitle>glTexSubImage3D</refentrytitle></citerefentry>
|
2009-03-08 00:46:58 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
They are as follows:
|
|
|
|
</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><constant>GL_UNPACK_ROW_LENGTH</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
If greater than 0,
|
|
|
|
<constant>GL_UNPACK_ROW_LENGTH</constant> defines the number of pixels in a row.
|
2013-11-03 11:43:50 +00:00
|
|
|
If the first pixel of a row is placed at location
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">p</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
in memory,
|
|
|
|
then the location of the first pixel of the next row is obtained by skipping
|
|
|
|
</para>
|
|
|
|
<para>
|
2014-03-28 19:06:55 +00:00
|
|
|
<informalequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
|
2010-11-21 14:34:29 +00:00
|
|
|
<!-- eqn: k = left { lpile { n l above {a over s} left ceiling { s n l } over a right ceiling } lpile { s >= a above s < a }: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mfenced open="{" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
2013-11-03 11:43:50 +00:00
|
|
|
<mml:mfenced open="⌈" close="⌉">
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></informalequation>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
components or indices,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices in a pixel,
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">l</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of pixels in a row
|
|
|
|
(<constant>GL_UNPACK_ROW_LENGTH</constant> if it is greater than 0,
|
2013-11-03 11:43:50 +00:00
|
|
|
the
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">width</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
argument to the pixel routine otherwise),
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">a</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the value of <constant>GL_UNPACK_ALIGNMENT</constant>, and
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the size, in bytes, of a single component
|
2013-11-03 11:43:50 +00:00
|
|
|
(if
|
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: a < s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>,
|
2013-11-03 11:43:50 +00:00
|
|
|
then it is as if
|
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: a = s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>).
|
|
|
|
In the case of 1-bit values,
|
|
|
|
the location of the next row is obtained by skipping
|
|
|
|
</para>
|
|
|
|
<para>
|
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: k = 8 a left ceiling { n l } over { 8 a } right ceiling: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mn>8</mml:mn>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
2013-11-03 11:43:50 +00:00
|
|
|
<mml:mfenced open="⌈" close="⌉">
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mn>8</mml:mn>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
components or indices.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The word <emphasis>component</emphasis> in this description refers to the nonindex values
|
|
|
|
red,
|
|
|
|
green,
|
|
|
|
blue,
|
|
|
|
alpha,
|
|
|
|
and depth.
|
|
|
|
Storage format <constant>GL_RGB</constant>,
|
|
|
|
for example,
|
|
|
|
has three components per pixel:
|
|
|
|
first red,
|
|
|
|
then green,
|
|
|
|
and finally blue.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><constant>GL_UNPACK_IMAGE_HEIGHT</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
If greater than 0,
|
|
|
|
<constant>GL_UNPACK_IMAGE_HEIGHT</constant> defines the number of pixels in an image of
|
|
|
|
a three-dimensional texture volume. Where ``image'' is defined by all
|
|
|
|
pixel sharing the same third dimension index.
|
2013-11-03 11:43:50 +00:00
|
|
|
If the first pixel of a row is placed at location
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">p</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
in memory,
|
|
|
|
then the location of the first pixel of the next row is obtained by skipping
|
|
|
|
</para>
|
|
|
|
<para>
|
2014-03-28 19:06:55 +00:00
|
|
|
<informalequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
|
2010-11-21 14:34:29 +00:00
|
|
|
<!-- eqn: k = left { lpile { n l h above {a over s} left ceiling { s n l h } over a right ceiling } lpile { s >= a above s < a }: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mfenced open="{" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">h</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
2013-11-03 11:43:50 +00:00
|
|
|
<mml:mfenced open="⌈" close="⌉">
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfrac>
|
|
|
|
<mml:mfenced open="" close="">
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">l</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">h</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mfrac>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mtable>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo>>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
<mml:mtr><mml:mtd>
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mtd></mml:mtr>
|
|
|
|
</mml:mtable>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:mfenced>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></informalequation>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
components or indices,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices in a pixel,
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">l</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of pixels in a row
|
|
|
|
(<constant>GL_UNPACK_ROW_LENGTH</constant> if it is greater than 0,
|
2013-11-03 11:43:50 +00:00
|
|
|
the
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">width</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
argument to <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry> otherwise),
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">h</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of rows in an image (<constant>GL_UNPACK_IMAGE_HEIGHT</constant> if
|
2013-11-03 11:43:50 +00:00
|
|
|
it is greater than 0, the
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">height</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
argument to <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry> otherwise),
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">a</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the value of <constant>GL_UNPACK_ALIGNMENT</constant>, and
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the size, in bytes, of a single component
|
2013-11-03 11:43:50 +00:00
|
|
|
(if
|
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: a < s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo><</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>,
|
2013-11-03 11:43:50 +00:00
|
|
|
then it is as if
|
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: a = s: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">a</mml:mi>
|
|
|
|
<mml:mo>=</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">s</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The word <emphasis>component</emphasis> in this description refers to the nonindex values
|
|
|
|
red,
|
|
|
|
green,
|
|
|
|
blue,
|
|
|
|
alpha,
|
|
|
|
and depth.
|
|
|
|
Storage format <constant>GL_RGB</constant>,
|
|
|
|
for example,
|
|
|
|
has three components per pixel:
|
|
|
|
first red,
|
|
|
|
then green,
|
|
|
|
and finally blue.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2014-03-28 19:06:55 +00:00
|
|
|
<term><constant>GL_UNPACK_SKIP_PIXELS</constant>, <constant>GL_UNPACK_SKIP_ROWS</constant> and <constant>GL_UNPACK_SKIP_IMAGES</constant></term>
|
2009-03-08 00:46:58 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
These values are provided as a convenience to the programmer;
|
|
|
|
they provide no functionality that cannot be duplicated by
|
|
|
|
incrementing the pointer passed to
|
|
|
|
<citerefentry><refentrytitle>glTexImage1D</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry>,
|
2010-11-21 14:34:29 +00:00
|
|
|
<citerefentry><refentrytitle>glTexSubImage1D</refentrytitle></citerefentry> or
|
|
|
|
<citerefentry><refentrytitle>glTexSubImage2D</refentrytitle></citerefentry>.
|
2013-11-03 11:43:50 +00:00
|
|
|
Setting <constant>GL_UNPACK_SKIP_PIXELS</constant> to
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">i</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is equivalent to incrementing
|
2013-11-03 11:43:50 +00:00
|
|
|
the pointer by
|
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: i n: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">i</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">n</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
components or indices,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices in each pixel.
|
2013-11-03 11:43:50 +00:00
|
|
|
Setting <constant>GL_UNPACK_SKIP_ROWS</constant> to
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">j</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is equivalent to incrementing
|
2013-11-03 11:43:50 +00:00
|
|
|
the pointer by
|
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: j k: -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">j</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
components or indices,
|
2013-11-03 11:43:50 +00:00
|
|
|
where
|
2014-03-28 19:06:55 +00:00
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">k</mml:mi></mml:math></inlineequation>
|
2009-03-08 00:46:58 +00:00
|
|
|
is the number of components or indices per row,
|
|
|
|
as just computed in the <constant>GL_UNPACK_ROW_LENGTH</constant> section.
|
2014-03-28 19:06:55 +00:00
|
|
|
Setting <constant>GL_UNPACK_SKIP_IMAGES</constant> to
|
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">k</mml:mi></mml:math></inlineequation>
|
|
|
|
is equivalent to incrementing
|
|
|
|
the pointer by
|
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
|
|
|
|
<!-- eqn: k p: -->
|
|
|
|
<mml:mrow>
|
|
|
|
<mml:mi mathvariant="italic">k</mml:mi>
|
|
|
|
<mml:mo>⁢</mml:mo>
|
|
|
|
<mml:mi mathvariant="italic">p</mml:mi>
|
|
|
|
</mml:mrow>
|
|
|
|
</mml:math></inlineequation>,
|
|
|
|
where
|
|
|
|
<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">p</mml:mi></mml:math></inlineequation>
|
|
|
|
is the number of components or indices
|
|
|
|
per image, as computed in the <constant>GL_UNPACK_IMAGE_HEIGHT</constant> section.
|
|
|
|
</para>
|
2009-03-08 00:46:58 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><constant>GL_UNPACK_ALIGNMENT</constant></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Specifies the alignment requirements for the start of each pixel row in memory.
|
|
|
|
The allowable values are
|
|
|
|
1 (byte-alignment),
|
|
|
|
2 (rows aligned to even-numbered bytes),
|
|
|
|
4 (word-alignment), and
|
|
|
|
8 (rows start on double-word boundaries).
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<para>
|
|
|
|
The following table gives the type,
|
|
|
|
initial value,
|
|
|
|
and range of valid values for each storage parameter
|
2014-03-28 19:06:55 +00:00
|
|
|
that can be set with <function>glPixelStorei</function>.
|
2009-03-08 00:46:58 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
</para>
|
2013-12-15 21:32:32 +00:00
|
|
|
<informaltable>
|
2014-03-28 19:06:55 +00:00
|
|
|
<tgroup cols="4" align="left">
|
|
|
|
<colspec colwidth="2.5*"/>
|
|
|
|
<colspec colwidth="1*" align="center"/>
|
|
|
|
<colspec colwidth="1*" align="center"/>
|
|
|
|
<colspec colwidth="2*" align="center"/>
|
2009-03-08 00:46:58 +00:00
|
|
|
<thead>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
|
|
|
<emphasis role="bold"> <parameter>pname</parameter> </emphasis>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<emphasis role="bold"> Type </emphasis>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<emphasis role="bold"> Initial Value </emphasis>
|
|
|
|
</entry>
|
|
|
|
<entry>
|
|
|
|
<emphasis role="bold"> Valid Range </emphasis>
|
|
|
|
</entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_PACK_ROW_LENGTH</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_PACK_IMAGE_HEIGHT</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0, \(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_PACK_SKIP_ROWS</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_PACK_SKIP_PIXELS</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_PACK_SKIP_IMAGES</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_PACK_ALIGNMENT</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
4
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
1, 2, 4, or 8
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_UNPACK_ROW_LENGTH</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_UNPACK_IMAGE_HEIGHT</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_UNPACK_SKIP_ROWS</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_UNPACK_SKIP_PIXELS</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_UNPACK_SKIP_IMAGES</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
0
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
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: left [ 0,\(if right ): -->
|
2009-03-08 00:46:58 +00:00
|
|
|
<mml:mfenced open="[" close=")">
|
|
|
|
<mml:mn>0</mml:mn>
|
2014-03-28 19:06:55 +00:00
|
|
|
<mml:infinity definitionURL="" encoding=""/>
|
2009-03-08 00:46:58 +00:00
|
|
|
</mml:mfenced>
|
|
|
|
</mml:math></inlineequation>
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
<row>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
<constant>GL_UNPACK_ALIGNMENT</constant>
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
integer
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
4
|
|
|
|
</entry>
|
2013-12-15 21:32:32 +00:00
|
|
|
<entry>
|
2009-03-08 00:46:58 +00:00
|
|
|
1, 2, 4, or 8
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="errors"><title>Errors</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<para>
|
|
|
|
<constant>GL_INVALID_ENUM</constant> is generated if <parameter>pname</parameter> is not an accepted value.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<constant>GL_INVALID_VALUE</constant> is generated if a negative row length,
|
|
|
|
pixel skip,
|
|
|
|
or row skip value is specified,
|
|
|
|
or if alignment is specified as other than 1, 2, 4, or 8.
|
|
|
|
</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_PACK_ROW_LENGTH</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_PACK_IMAGE_HEIGHT</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_PACK_SKIP_ROWS</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_PACK_SKIP_PIXELS</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_PACK_SKIP_IMAGES</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_PACK_ALIGNMENT</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_UNPACK_ROW_LENGTH</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_UNPACK_IMAGE_HEIGHT</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_UNPACK_SKIP_ROWS</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_UNPACK_SKIP_PIXELS</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_UNPACK_SKIP_IMAGES</constant>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_UNPACK_ALIGNMENT</constant>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2014-03-28 19:06:55 +00:00
|
|
|
<refsect1 xml:id="versions">
|
|
|
|
<title>API Version Support</title>
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="4" align="left">
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apifunchead.xml" xpointer="xpointer(/*/*)"/>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>glPixelStorei</entry>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apiversion.xml" xpointer="xpointer(/*/*[@role='es20']/*)"/>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 xml:id="seealso"><title>See Also</title>
|
2009-03-08 00:46:58 +00:00
|
|
|
<para>
|
|
|
|
<citerefentry><refentrytitle>glReadPixels</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry>,
|
|
|
|
<citerefentry><refentrytitle>glTexSubImage2D</refentrytitle></citerefentry>,
|
2014-03-28 19:06:55 +00:00
|
|
|
<citerefentry><refentrytitle>glTexSubImage3D</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-2014 Khronos Group.
|
|
|
|
This document is licensed under the SGI Free Software B License.
|
|
|
|
For details, see
|
|
|
|
<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>
|