C SPECIFICATION
void GLAPIENTRY glMapGrid1d( GLint un,
GLdouble u1,
GLdouble u2 )
void GLAPIENTRY glMapGrid1f( GLint un,
GLfloat u1,
GLfloat u2 )
void GLAPIENTRY glMapGrid2d( GLint un,
GLdouble u1,
GLdouble u )
void GLAPIENTRY glMapGrid2f( GLint un,
GLfloat u1,
GLfloat u )
PARAMETERS
un Specifies the number of partitions in the grid range interval [u1,
u]. Must be positive.
u1, u
Specify the mappings for integer grid domain values i=0 and i=un.
_param4
Specifies the number of partitions in the grid range interval
[_param5, _param6]
(glMapGrid2 only).
_param5, _param6
Specify the mappings for integer grid domain values j=0 and j=_eqn-
param4
(glMapGrid2 only).
DESCRIPTION
glMapGrid and glEvalMesh are used together to efficiently generate and
evaluate a series of evenly-spaced map domain values. glEvalMesh steps
through the integer domain of a one- or two-dimensional grid, whose
range is the domain of the evaluation maps specified by glMap1 and
glMap2.
glMapGrid1 and glMapGrid2 specify the linear grid mappings between the
i (or i and j) integer grid coordinates, to the u (or u and v) float-
ing-point evaluation map coordinates. See glMap1 and glMap2 for
details of how u and v coordinates are evaluated.
glMapGrid1 specifies a single linear mapping such that integer grid
coordinate 0 maps exactly to u1, and integer grid coordinate un maps
exactly to u. All other integer grid coordinates i are mapped so that
u=i(u-u1)/un+u1
GL_INVALID_VALUE is generated if either un or _param4 is not positive.
GL_INVALID_OPERATION is generated if glMapGrid is executed between the
execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_MAP1_GRID_DOMAIN
glGet with argument GL_MAP2_GRID_DOMAIN
glGet with argument GL_MAP1_GRID_SEGMENTS
glGet with argument GL_MAP2_GRID_SEGMENTS
SEE ALSO
glEvalCoord, glEvalMesh, glEvalPoint, glMap1, glMap2
GLMAPGRID(3G)
Man(1) output converted with
man2html