HP b2600 Reference Manual page 125

Opengl 1.1 reference
Hide thumbs Also See for b2600:
Table of Contents

Advertisement

The following table summarizes the meaning of the valid constants for the type
parameter:
Table 4-1
Type
GL_UNSIGNED_BYTE
GL_BYTE
GL_BITMAP
GL_UNSIGNED_SHORT
GL_SHORT
GL_UNSIGNED_INT
GL_INT
GL_FLOAT
The rasterization described so far assumes pixel zoom factors of 1. If glPixelZoom is used
to change the x and y pixel zoom factors, pixels are converted to fragments as follows. If
(x
of the pixel rectangle, then fragments are generated for pixels whose centers are in the
rectangle with corners at
(x
(x
where zoom
Errors
Associated Gets
glGet with argument GL_CURRENT_RASTER_POSITION
glGet with argument GL_CURRENT_RASTER_POSITION_VALID
Chapter 4
, y
) is the current raster position, and a given pixel is in the nth column and mth row
r
r
+ zoom
n, y
+ zoom
r
x
r
y
+ zoom
(n + 1), y
+ zoom
r
x
r
is the value of GL_ZOOM_X and zoom
x
GL_INVALID_VALUE is generated if either width or height is negative.
GL_INVALID_ENUM is generated if format or type is not one of the accepted values.
GL_INVALID_OPERATION is generated if format is GL_RED, GL_GREEN,
GL_BLUE, GL_ALPHA, GL_RGB, GL_RGBA, GL_LUMINANCE, or
GL_LUMINANCE_ALPHA, and the GL is in color index mode.
GL_INVALID_ENUM is generated if type is GL_BITMAP and format is not either
GL_COLOR_INDEX or GL_STENCIL_INDEX.
GL_INVALID_OPERATION is generated if format is GL_STENCIL_INDEX and
there is no stencil buffer.
GL_INVALID_OPERATION is generated if glDrawPixels is executed between the
execution of glBegin and the corresponding execution of glEnd.
Corresponding Type
Unsigned 8-bit integer
Signed 8-bit integer
Single bits in unsigned 8-bit integers
Unsigned 16-bit integers
Signed 16-bit integers
Unsigned 32-bit integers
32-bit integer
Single-precision floating-point
m)
(m + 1))
y
is the value of GL_ZOOM_Y.
y
D
glDrawPixels
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents