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 #72 background imageLoading...
Page #72 background image
C
glCopyPixels
Chapter 3
72
The rasterization described thus far assumes pixel zoom factors of 1.0. If glPixelZoom is
used to change the x and y pixel zoom factors, pixels are converted to fragments as
follows. If (x
r
, y
r
) is the current raster position, and a given pixel is in the ith location in
the jth row of the source pixel rectangle, then fragments are generated for pixels whose
centers are in the rectangle with corners at
(x
r
+ zoom
x
i, y
r
+ zoom
y
j)
and
(x
r
+ zoom
x
(i+1), y
r
+ zoom
y
(j+1))
where zoom
x
is the value of GL_ZOOM_X and zoom
y
is the value of GL_ZOOM_Y.
Examples
To copy the color pixel in the lower left corner of the window to the current raster
position, use
glCopyPixels(0, 0, 1, 1, GL_COLOR);
Notes
Modes specified by glPixelStore have no effect on the operation of glCopyPixels.
Errors
GL_INVALID_ENUM is generated if type is not an accepted value.
GL_INVALID_VALUE is generated if either width or height is negative.
GL_INVALID_OPERATION is generated if type is GL_DEPTH and there is no depth
buffer.
GL_INVALID_OPERATION is generated if type is GL_STENCIL and there is no
stencil buffer.
GL_INVALID_OPERATION is generated if glCopyPixels is executed between the
execution of glBegin and the corresponding execution of glEnd.
Associated Gets
glGet with argument GL_CURRENT_RASTER_POSITION
glGet with argument GL_CURRENT_RASTER_POSITION_VALID
See Also
glDepthFunc,
glDrawBuffer,
glDrawPixels,
glPixelMap,
glPixelTransfer,
glPixelZoom,
glRasterPos,

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