GLPIXELMAP



GLPIXELMAP

NAME
C SPECIFICATION
PARAMETERS
DESCRIPTION
ERRORS
ASSOCIATED GETS
SEE ALSO

NAME

glPixelMapfv, glPixelMapuiv, glPixelMapusv − set up pixel transfer maps

C SPECIFICATION

void glPixelMapfv( GLenum map,

GLint mapsize,

const GLfloat *values )

void glPixelMapuiv( GLenum map,

GLint mapsize,

const GLuint *values )

void glPixelMapusv( GLenum map,

GLint mapsize,

const GLushort *values )

PARAMETERS

map

Specifies a symbolic map name. Must be one of the following: GL_PIXEL_MAP_I_TO_I, GL_PIXEL_MAP_S_TO_S, GL_PIXEL_MAP_I_TO_R, GL_PIXEL_MAP_I_TO_G, GL_PIXEL_MAP_I_TO_B, GL_PIXEL_MAP_I_TO_A, GL_PIXEL_MAP_R_TO_R, GL_PIXEL_MAP_G_TO_G, GL_PIXEL_MAP_B_TO_B, or GL_PIXEL_MAP_A_TO_A.

mapsize

Specifies the size of the map being defined.

values

Specifies an array of mapsize values.

DESCRIPTION

glPixelMap sets up translation tables, or maps, used by glCopyPixels, glCopyTexImage1D, glCopyTexImage2D, glCopyTexSubImage1D, glCopyTexSubImage2D, glCopyTexSubImage3D, glDrawPixels, glReadPixels, glTexImage1D, glTexImage2D, glTexImage3D, glTexSubImage1D, glTexSubImage2D, and glTexSubImage3D. Additionally, if the GL_ARB_imaging subset is supported, the routines glColorTable, glColorSubTable, glConvolutionFilter1D, glConvolutionFilter2D, glHistogram, glMinmax, and glSeparableFilter2D. Use of these maps is described completely in the glPixelTransfer reference page, and partly in the reference pages for the pixel and texture image commands. Only the specification of the maps is described in this reference page.

map is a symbolic map name, indicating one of ten maps to set. mapsize specifies the number of entries in the map, and values is a pointer to an array of mapsize map values.

The ten maps are as follows:

GL_PIXEL_MAP_I_TO_I

Maps color indices to color indices.

GL_PIXEL_MAP_S_TO_S

Maps stencil indices to stencil indices.

GL_PIXEL_MAP_I_TO_R

Maps color indices to red components.

GL_PIXEL_MAP_I_TO_G

Maps color indices to green components.

GL_PIXEL_MAP_I_TO_B

Maps color indices to blue components.

GL_PIXEL_MAP_I_TO_A

Maps color indices to alpha components.

GL_PIXEL_MAP_R_TO_R

Maps red components to red components.

GL_PIXEL_MAP_G_TO_G

Maps green components to green components.

GL_PIXEL_MAP_B_TO_B

Maps blue components to blue components.

GL_PIXEL_MAP_A_TO_A

Maps alpha components to alpha components.

The entries in a map can be specified as single-precision floating-point numbers, unsigned short integers, or unsigned long integers. Maps that store color component values (all but GL_PIXEL_MAP_I_TO_I and GL_PIXEL_MAP_S_TO_S) retain their values in floating-point , with unspecified mantissa and exponent sizes. Floating-point values specified by glPixelMapfv are converted directly to the internal floating-point of these maps, then clamped to the range [0,1]. Unsigned integer values specified by glPixelMapusv and glPixelMapuiv are converted linearly such that the largest representable integer maps to 1.0, and 0 maps to 0.0.

Maps that store indices, GL_PIXEL_MAP_I_TO_I and GL_PIXEL_MAP_S_TO_S, retain their values in fixed-point , with an unspecified number of bits to the right of the binary point. Floating-point values specified by glPixelMapfv are converted directly to the internal fixed-point of these maps. Unsigned integer values specified by glPixelMapusv and glPixelMapuiv specify integer values, with all 0’s to the right of the binary point.

The following table shows the initial sizes and values for each of the maps. Maps that are indexed by either color or stencil indices must have mapsize = $2 sup n$ for some $n$ or the results are undefined. The maximum allowable size for each map depends on the implementation and can be determined by calling glGet with argument GL_MAX_PIXEL_MAP_TABLE. The single maximum applies to all maps; it is at least 32.

ERRORS

GL_INVALID_ENUM is generated if map is not an accepted value.

GL_INVALID_VALUE is generated if mapsize is less than one or larger than GL_MAX_PIXEL_MAP_TABLE.

GL_INVALID_VALUE is generated if map is GL_PIXEL_MAP_I_TO_I, GL_PIXEL_MAP_S_TO_S, GL_PIXEL_MAP_I_TO_R, GL_PIXEL_MAP_I_TO_G, GL_PIXEL_MAP_I_TO_B, or GL_PIXEL_MAP_I_TO_A, and mapsize is not a power of two.

GL_INVALID_OPERATION is generated if glPixelMap is executed between the execution of glBegin and the corresponding execution of glEnd.

ASSOCIATED GETS

glGetPixelMap
glGet
with argument GL_PIXEL_MAP_I_TO_I_SIZE
glGet
with argument GL_PIXEL_MAP_S_TO_S_SIZE
glGet
with argument GL_PIXEL_MAP_I_TO_R_SIZE
glGet
with argument GL_PIXEL_MAP_I_TO_G_SIZE
glGet
with argument GL_PIXEL_MAP_I_TO_B_SIZE
glGet
with argument GL_PIXEL_MAP_I_TO_A_SIZE
glGet
with argument GL_PIXEL_MAP_R_TO_R_SIZE
glGet
with argument GL_PIXEL_MAP_G_TO_G_SIZE
glGet
with argument GL_PIXEL_MAP_B_TO_B_SIZE
glGet
with argument GL_PIXEL_MAP_A_TO_A_SIZE
glGet
with argument GL_MAX_PIXEL_MAP_TABLE

SEE ALSO

glColorTable(3G), glColorSubTable(3G), glConvolutionFilter1D(3G), glConvolutionFilter2D(3G), glCopyPixels(3G), glCopyTexImage1D(3G), glCopyTexImage2D(3G), glCopyTexSubImage1D(3G), glCopyTexSubImage2D(3G), glDrawPixels(3G), glHistogram(3G), glMinmax(3G), glPixelStore(3G), glPixelTransfer(3G), glReadPixels(3G), glSeparableFilter2D(3G), glTexImage1D(3G), glTexImage2D(3G), glTexImage3D(3G), glTexSubImage1D(3G), glTexSubImage2D(3G), glTexSubImage3D(3G)



More Linux Commands

manpages/Net::Server::SIG.3pm.html
Net::Server::SIG(3pm) - adpf - Safer signal handling........
Signals in Perl 5 are unsafe. Some future releases may be able to fix some of this (ie Perl 5.8 or 6.0), but it would be nice to have some safe, portable signal

manpages/pcre16_utf16_to_host_byte_order.3.html
pcre16_utf16_to_host_byte_order(3) Perl-compatible regular e
pcre16_utf16_to_host_byte_order.3 - This function, which exists only in the 16-bit library, converts a UTF-16 string to the correct order for the current host,

manpages/pcre32_jit_stack_alloc.3.html
pcre32_jit_stack_alloc(3) Perl-compatible regular expression
This function is used to create a stack for use by the code compiled by the JIT optimization of pcre[16|32]_study(). The arguments are a starting size for the s

manpages/mergecap.1.html
mergecap(1) - Merges two or more capture files into one.....
Mergecap is a program that combines multiple saved capture files into a single output file specified by the -w argument. Mergecap knows how to read pcap capture

manpages/hook.3menu.html
hook(3menu) - set hooks for automatic invocation by applicat
These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by menu_driver. The funct

manpages/genprof.8.html
genprof(8) profile generation utility for AppArmor..........
When running aa-genprof, you must specify a program to profile. If the specified program is not a fully-qualified path, aa-genprof will search $PATH in order to

manpages/rand.3.html
rand(3) - pseudo-random number generator - Linux man page...
The rand() function returns a pseudo-random integer in the range 0 to RAND_MAX inclusive (i.e., the mathematical range [0, RAND_MAX]). The srand() function sets

manpages/agentxtrap.1.html
agentxtrap(1) - send an AgentX NotifyPDU to an AgentX master
agentxtrap issues an AgentX NotifyPDU to a master agent. One or more object identifiers (OIDs) can be given as arguments on the command line. A type and a value

manpages/XkbSetIgnoreLockMods.3.html
XkbSetIgnoreLockMods(3) - Sets the modifiers that, if locked
XkbSetIgnoreLockMods.3 - The core protocol does not provide a way to exclude specific modifiers from grab calculations, with the result that locking modifiers s

manpages/XUnionRectWithRegion.3.html
XUnionRectWithRegion(3) - region arithmetic - Linux man page
The XIntersectRegion function computes the intersection of two regions. The XUnionRegion function computes the union of two regions. The XUnionRectWithRegion fu

manpages/Tcl_ThreadAlert.3.html
Tcl_ThreadAlert(3) - the event queue and notifier interfaces
The interfaces described here are used to customize the Tcl event loop. The two most common customizations are to add new sources of events and to merge Tcls ev

manpages/form_data.3form.html
form_data(3form) - test for off-screen data in given forms
The function data_ahead tests whether there is off-screen data ahead in the given form. It returns TRUE 411toppm(1) or FALSE (0). The function data_behind tests





We can't live, work or learn in freedom unless the software we use is free.