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) floating-
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 co‐
ordinate 0 maps exactly to u1, and integer grid coordinate un maps ex‐
actly to u. All other integer grid coordinates i are mapped so that
u=i(u−u1)/un+u1
glMapGrid2 specifies two such linear mappings. One maps integer grid
coordinate i=0 exactly to u1, and integer grid coordinate i=un exactly
to u. The other maps integer grid coordinate j=0 exactly to _param5,
and integer grid coordinate j=_eqnparam4 exactly to _param6. Other in‐
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