table of contents
GLMINMAX(3G) | OpenGL Manual | GLMINMAX(3G) |
NAME¶
glMinmax - define minmax table
C SPECIFICATION¶
void glMinmax(GLenum target, GLenum internalformat, GLboolean sink);
PARAMETERS¶
target
internalformat
sink
DESCRIPTION¶
When GL_MINMAX is enabled, the RGBA components of incoming pixels are compared to the minimum and maximum values for each component, which are stored in the two-element minmax table. (The first element stores the minima, and the second element stores the maxima.) If a pixel component is greater than the corresponding component in the maximum element, then the maximum element is updated with the pixel component value. If a pixel component is less than the corresponding component in the minimum element, then the minimum element is updated with the pixel component value. (In both cases, if the internal format of the minmax table includes luminance, then the R color component of incoming pixels is used for comparison.) The contents of the minmax table may be retrieved at a later time by calling glGetMinmax(). The minmax operation is enabled or disabled by calling glEnable() or glDisable(), respectively, with an argument of GL_MINMAX.
glMinmax redefines the current minmax table to have entries of the format specified by internalformat. The maximum element is initialized with the smallest possible component values, and the minimum element is initialized with the largest possible component values. The values in the previous minmax table, if any, are lost. If sink is GL_TRUE, then pixels are discarded after minmax; no further processing of the pixels takes place, and no drawing, texture loading, or pixel readback will result.
NOTES¶
glMinmax is present only if ARB_imaging is returned when glGetString() is called with an argument of GL_EXTENSIONS.
ERRORS¶
GL_INVALID_ENUM is generated if target is not one of the allowable values.
GL_INVALID_ENUM is generated if internalformat is not one of the allowable values.
GL_INVALID_OPERATION is generated if glMinmax is executed between the execution of glBegin() and the corresponding execution of glEnd().
ASSOCIATED GETS¶
glGetMinmaxParameter()
SEE ALSO¶
glGetMinmax(), glResetMinmax()
COPYRIGHT¶
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
AUTHORS¶
opengl.org
05/02/2014 | opengl.org |