glMinmaxEXT(3G) OpenGL Reference glMinmaxEXT(3G)
NAME
glMinmaxEXT - define minmax table
C SPECIFICATION
void glMinmaxEXT( GLenum target,
GLenum internalformat,
GLboolean sink )
PARAMETERS
target The minmax table whose parameters are to be set. Must be
GLMINMAXEXT.
internalformat The format of entries in the minmax table. Must be one
of GLALPHA, GLALPHA4EXT, GLALPHA8EXT,
GLALPHA12EXT, GLALPHA16EXT, GLLUMINANCE,
GLLUMINANCE4EXT, GLLUMINANCE8EXT, GLLUMINANCE12EXT,
GLLUMINANCE16EXT, GLLUMINANCEALPHA,
GLLUMINANCE4ALPHA4EXT, GLLUMINANCE6ALPHA2EXT,
GLLUMINANCE8ALPHA8EXT, GLLUMINANCE12ALPHA4EXT,
GLLUMINANCE12ALPHA12EXT, GLLUMINANCE16ALPHA16EXT,
GLRGB, GLRGB2EXT, GLRGB4EXT, GLRGB5EXT,
GLRGB8EXT, GLRGB10EXT, GLRGB12EXT, GLRGB16EXT,
GLRGBA, GLRGBA2EXT, GLRGBA4EXT, GLRGB5A1EXT,
GLRGBA8EXT, GLRGB10A2EXT, GLRGBA12EXT, or
GLRGBA16EXT.
sink If GLTRUE, pixels will be consumed by the minmax process
and no drawing or texture loading will take place. If
GLFALSE, pixels will proceed to the final conversion
process after minmax.
DESCRIPTION
Minmax is part of the GL pixel transfer process. It takes place
immediately after histogramming. Minmax is performed only for RGBA
pixels (though these may be specified originally as color indices and
converted to RGBA by index table lookup). Minmax is enabled with
glEnable and disabled with glDisable.
When GLMINMAXEXT is enabled, the RGBA components of incoming pixels are
compared to the minimum and maximum values for each component, which are
stored in the 2-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 glGetMinmaxEXT.
Page 1
glMinmaxEXT(3G) OpenGL Reference glMinmaxEXT(3G)
glMinmaxEXT 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 GLTRUE, then
pixels are discarded after minmax; no further processing of the pixels
takes place, and no drawing, texture loading, or pixel readback will
result.
The minmax state information may be queried by calling
glGetMinmaxParameterEXT with a target of GLMINMAXEXT and one of the
following values for the pname argument:
Parameter Description
____________________________________________________
GLMINMAXFORMAT Internal format of minmax table
GLMINMAXSINKEXT Value of the sink parameter
NOTES
glMinmaxEXT is part of the EXTblendminmax extension, not part of the
core GL command set. If GLEXTblendminmax is included in the string
returned by glGetString, when called with argument GLEXTENSIONS,
extension EXTblendminmax is supported by the connection.
ERRORS
GLINVALIDENUM is generated if target is not one of the allowable
values.
GLINVALIDENUM is generated if internalformat is not one of the
allowable values.
GLINVALIDOPERATION is generated if glMinmaxEXT is executed between the
execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGetMinmaxParameterEXT.
MACHINE DEPENDENCIES
On RealityEngine, RealityEngine2, and VTX systems, histogram and minmax
may not be used when rendering to pixmaps.
SEE ALSO
glGetMinmaxEXT, glResetMinmaxEXT.
Page 2