Lines Matching full:points
201 /*** Copy and deallocate control points ***/
206 * Copy 1-parametric evaluator control points from user-specified
207 * memory space to a buffer of contiguous control points.
209 * \return pointer to buffer of contiguous control points or NULL if out
213 const GLfloat *points )
218 if (!points || !size)
224 for (i = 0, p = buffer; i < uorder; i++, points += ustride)
226 *p++ = points[k];
237 const GLdouble *points )
242 if (!points || !size)
248 for (i = 0, p = buffer; i < uorder; i++, points += ustride)
250 *p++ = (GLfloat) points[k];
258 * Copy 2-parametric evaluator control points from user-specified
259 * memory space to a buffer of contiguous control points.
264 * \return pointer to buffer of contiguous control points or NULL if out
270 const GLfloat *points )
278 if (!points || size==0) {
282 /* max(uorder, vorder) additional points are used in */
297 for (i=0, p=buffer; i<uorder; i++, points += uinc)
298 for (j=0; j<vorder; j++, points += vstride)
300 *p++ = points[k];
313 const GLdouble *points )
321 if (!points || size==0) {
325 /* max(uorder, vorder) additional points are used in */
340 for (i=0, p=buffer; i<uorder; i++, points += uinc)
341 for (j=0; j<vorder; j++, points += vstride)
343 *p++ = (GLfloat) points[k];
352 /*** API entry points ***/
361 GLint uorder, const GLvoid *points, GLenum type )
379 if (!points) {
380 _mesa_error( ctx, GL_INVALID_VALUE, "glMap1(points)" );
406 /* make copy of the control points */
408 pnts = _mesa_copy_map_points1f(target, ustride, uorder, (GLfloat*) points);
410 pnts = _mesa_copy_map_points1d(target, ustride, uorder, (GLdouble*) points);
418 if (map->Points)
419 FREE( map->Points );
420 map->Points = pnts;
427 GLint order, const GLfloat *points )
429 map1(target, u1, u2, stride, order, points, GL_FLOAT);
435 GLint order, const GLdouble *points )
437 map1(target, (GLfloat) u1, (GLfloat) u2, stride, order, points, GL_DOUBLE);
444 const GLvoid *points, GLenum type )
500 /* make copy of the control points */
503 vstride, vorder, (GLfloat*) points);
506 vstride, vorder, (GLdouble*) points);
518 if (map->Points)
519 FREE( map->Points );
520 map->Points = pnts;
528 const GLfloat *points)
531 points, GL_FLOAT);
539 const GLdouble *points )
542 (GLfloat) v1, (GLfloat) v2, vstride, vorder, points, GL_DOUBLE);
573 data = map1d->Points;
577 data = map2d->Points;
665 data = map1d->Points;
669 data = map2d->Points;
759 data = map1d->Points;
763 data = map2d->Points;
943 map->Points = (GLfloat *) MALLOC(n * sizeof(GLfloat));
944 if (map->Points) {
947 map->Points[i] = initial[i];
964 map->Points = (GLfloat *) MALLOC(n * sizeof(GLfloat));
965 if (map->Points) {
968 map->Points[i] = initial[i];
1050 if (ctx->EvalMap.Map1Vertex3.Points)
1051 FREE( ctx->EvalMap.Map1Vertex3.Points );
1052 if (ctx->EvalMap.Map1Vertex4.Points)
1053 FREE( ctx->EvalMap.Map1Vertex4.Points );
1054 if (ctx->EvalMap.Map1Index.Points)
1055 FREE( ctx->EvalMap.Map1Index.Points );
1056 if (ctx->EvalMap.Map1Color4.Points)
1057 FREE( ctx->EvalMap.Map1Color4.Points );
1058 if (ctx->EvalMap.Map1Normal.Points)
1059 FREE( ctx->EvalMap.Map1Normal.Points );
1060 if (ctx->EvalMap.Map1Texture1.Points)
1061 FREE( ctx->EvalMap.Map1Texture1.Points );
1062 if (ctx->EvalMap.Map1Texture2.Points)
1063 FREE( ctx->EvalMap.Map1Texture2.Points );
1064 if (ctx->EvalMap.Map1Texture3.Points)
1065 FREE( ctx->EvalMap.Map1Texture3.Points );
1066 if (ctx->EvalMap.Map1Texture4.Points)
1067 FREE( ctx->EvalMap.Map1Texture4.Points );
1069 FREE((ctx->EvalMap.Map1Attrib[i].Points));
1071 if (ctx->EvalMap.Map2Vertex3.Points)
1072 FREE( ctx->EvalMap.Map2Vertex3.Points );
1073 if (ctx->EvalMap.Map2Vertex4.Points)
1074 FREE( ctx->EvalMap.Map2Vertex4.Points );
1075 if (ctx->EvalMap.Map2Index.Points)
1076 FREE( ctx->EvalMap.Map2Index.Points );
1077 if (ctx->EvalMap.Map2Color4.Points)
1078 FREE( ctx->EvalMap.Map2Color4.Points );
1079 if (ctx->EvalMap.Map2Normal.Points)
1080 FREE( ctx->EvalMap.Map2Normal.Points );
1081 if (ctx->EvalMap.Map2Texture1.Points)
1082 FREE( ctx->EvalMap.Map2Texture1.Points );
1083 if (ctx->EvalMap.Map2Texture2.Points)
1084 FREE( ctx->EvalMap.Map2Texture2.Points );
1085 if (ctx->EvalMap.Map2Texture3.Points)
1086 FREE( ctx->EvalMap.Map2Texture3.Points );
1087 if (ctx->EvalMap.Map2Texture4.Points)
1088 FREE( ctx->EvalMap.Map2Texture4.Points );
1090 FREE((ctx->EvalMap.Map2Attrib[i].Points));