EasyManuals Logo

HP b2600 Reference Guide

HP b2600
486 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #329 background imageLoading...
Page #329 background image
P
glPixelStore
Chapter 14
329
If true, bits are ordered within a byte from least significant to most significant;
otherwise, the first bit in each byte is the most significant one. This parameter is
significant for bitmap data only.
GL_PACK_ROW_LENGTH
If greater than 0, GL_PACK_ROW_LENGTH defines the number of pixels in a row. If
the first pixel of a row is placed at location p in memory, then the location of the first
pixel of the next row is obtained by skipping
components or indices, where n is the number of components or indices in a pixel, l is
the number of pixels in a row (GL_PACK_ROW_LENGTH if it is greater than 0, the
width argument to the pixel routine otherwise), a is the value of
GL_PACK_ALIGNMENT, and s is the size, in bytes, of a single component (if a<s, then it
is as if a=s). In the case of 1-bit values, the location of the next row is obtained by
skipping
components or indices.
The word component in this description refers to the non-index values red, green, blue,
alpha, and depth. Storage format GL_RGB, for example, has three components per pixel:
first red, then green, and finally blue.
GL_PACK_SKIP_PIXELS and GL_PACK_SKIP_ROWS
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
glReadPixels. Setting GL_PACK_SKIP_PIXELS to i is equivalent to incrementing the
pointer by in components or indices, where n is the number of components or indices in
each pixel. Setting GL_PACK_SKIP_ROWS to j is equivalent to incrementing the
pointer by jk components or indices, where k is the number of components or indices per
row, as just computed in the GL_PACK_ROW_LENGTH section.
GL_PACK_ALIGNMENT
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).
The other six of the twelve storage parameters affect how pixel data is read from client
memory. These values are significant for glDrawPixels, glTexImage1D, glTexImage2D,
glTexSubImage1D, glTexSubImage2D, glBitmap, and glPolygonStipple. They are as
follows:
GL_UNPACK_SWAP_BYTES
k
nl
a
s
---
------
snl
a
---------
if
sa
sa<
-----------
=
k 8a
nl
8a
------
=

Table of Contents

Other manuals for HP b2600

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP b2600 and is the answer not in the manual?

HP b2600 Specifications

General IconGeneral
BrandHP
Modelb2600
CategoryDesktop
LanguageEnglish

Related product manuals