Lines Matching refs:points
145 /*** Copy and deallocate control points ***/
150 * Copy 1-parametric evaluator control points from user-specified
151 * memory space to a buffer of contiguous control points.
153 * \return pointer to buffer of contiguous control points or NULL if out
157 const GLfloat *points )
162 if (!points || !size)
168 for (i = 0, p = buffer; i < uorder; i++, points += ustride)
170 *p++ = points[k];
181 const GLdouble *points )
186 if (!points || !size)
192 for (i = 0, p = buffer; i < uorder; i++, points += ustride)
194 *p++ = (GLfloat) points[k];
202 * Copy 2-parametric evaluator control points from user-specified
203 * memory space to a buffer of contiguous control points.
208 * \return pointer to buffer of contiguous control points or NULL if out
214 const GLfloat *points )
222 if (!points || size==0) {
226 /* max(uorder, vorder) additional points are used in */
241 for (i=0, p=buffer; i<uorder; i++, points += uinc)
242 for (j=0; j<vorder; j++, points += vstride)
244 *p++ = points[k];
257 const GLdouble *points )
265 if (!points || size==0) {
269 /* max(uorder, vorder) additional points are used in */
284 for (i=0, p=buffer; i<uorder; i++, points += uinc)
285 for (j=0; j<vorder; j++, points += vstride)
287 *p++ = (GLfloat) points[k];
296 /*** API entry points ***/
305 GLint uorder, const GLvoid *points, GLenum type )
322 if (!points) {
323 _mesa_error( ctx, GL_INVALID_VALUE, "glMap1(points)" );
350 /* make copy of the control points */
352 pnts = _mesa_copy_map_points1f(target, ustride, uorder, (GLfloat*) points);
354 pnts = _mesa_copy_map_points1d(target, ustride, uorder, (GLdouble*) points);
371 GLint order, const GLfloat *points )
373 map1(target, u1, u2, stride, order, points, GL_FLOAT);
379 GLint order, const GLdouble *points )
381 map1(target, (GLfloat) u1, (GLfloat) u2, stride, order, points, GL_DOUBLE);
388 const GLvoid *points, GLenum type )
444 /* make copy of the control points */
447 vstride, vorder, (GLfloat*) points);
450 vstride, vorder, (GLdouble*) points);
472 const GLfloat *points)
475 points, GL_FLOAT);
483 const GLdouble *points )
486 (GLfloat) v1, (GLfloat) v2, vstride, vorder, points, GL_DOUBLE);