• Home
  • Raw
  • Download

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 ) in _mesa_copy_map_points1f() argument
218 if (!points || !size) in _mesa_copy_map_points1f()
224 for (i = 0, p = buffer; i < uorder; i++, points += ustride) in _mesa_copy_map_points1f()
226 *p++ = points[k]; in _mesa_copy_map_points1f()
237 const GLdouble *points ) in _mesa_copy_map_points1d() argument
242 if (!points || !size) in _mesa_copy_map_points1d()
248 for (i = 0, p = buffer; i < uorder; i++, points += ustride) in _mesa_copy_map_points1d()
250 *p++ = (GLfloat) points[k]; in _mesa_copy_map_points1d()
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 ) in _mesa_copy_map_points2f() argument
278 if (!points || size==0) { in _mesa_copy_map_points2f()
282 /* max(uorder, vorder) additional points are used in */ in _mesa_copy_map_points2f()
297 for (i=0, p=buffer; i<uorder; i++, points += uinc) in _mesa_copy_map_points2f()
298 for (j=0; j<vorder; j++, points += vstride) in _mesa_copy_map_points2f()
300 *p++ = points[k]; in _mesa_copy_map_points2f()
313 const GLdouble *points ) in _mesa_copy_map_points2d() argument
321 if (!points || size==0) { in _mesa_copy_map_points2d()
325 /* max(uorder, vorder) additional points are used in */ in _mesa_copy_map_points2d()
340 for (i=0, p=buffer; i<uorder; i++, points += uinc) in _mesa_copy_map_points2d()
341 for (j=0; j<vorder; j++, points += vstride) in _mesa_copy_map_points2d()
343 *p++ = (GLfloat) points[k]; in _mesa_copy_map_points2d()
352 /*** API entry points ***/
361 GLint uorder, const GLvoid *points, GLenum type ) in map1() argument
379 if (!points) { in map1()
380 _mesa_error( ctx, GL_INVALID_VALUE, "glMap1(points)" ); in map1()
406 /* make copy of the control points */ in map1()
408 pnts = _mesa_copy_map_points1f(target, ustride, uorder, (GLfloat*) points); in map1()
410 pnts = _mesa_copy_map_points1d(target, ustride, uorder, (GLdouble*) points); in map1()
418 if (map->Points) in map1()
419 FREE( map->Points ); in map1()
420 map->Points = pnts; in map1()
427 GLint order, const GLfloat *points ) in _mesa_Map1f() argument
429 map1(target, u1, u2, stride, order, points, GL_FLOAT); in _mesa_Map1f()
435 GLint order, const GLdouble *points ) in _mesa_Map1d() argument
437 map1(target, (GLfloat) u1, (GLfloat) u2, stride, order, points, GL_DOUBLE); in _mesa_Map1d()
444 const GLvoid *points, GLenum type ) in map2() argument
500 /* make copy of the control points */ in map2()
503 vstride, vorder, (GLfloat*) points); in map2()
506 vstride, vorder, (GLdouble*) points); in map2()
518 if (map->Points) in map2()
519 FREE( map->Points ); in map2()
520 map->Points = pnts; in map2()
528 const GLfloat *points) in _mesa_Map2f() argument
531 points, GL_FLOAT); in _mesa_Map2f()
539 const GLdouble *points ) in _mesa_Map2d() argument
542 (GLfloat) v1, (GLfloat) v2, vstride, vorder, points, GL_DOUBLE); in _mesa_Map2d()
573 data = map1d->Points; in _mesa_GetnMapdvARB()
577 data = map2d->Points; in _mesa_GetnMapdvARB()
665 data = map1d->Points; in _mesa_GetnMapfvARB()
669 data = map2d->Points; in _mesa_GetnMapfvARB()
759 data = map1d->Points; in _mesa_GetnMapivARB()
763 data = map2d->Points; in _mesa_GetnMapivARB()
943 map->Points = (GLfloat *) MALLOC(n * sizeof(GLfloat)); in init_1d_map()
944 if (map->Points) { in init_1d_map()
947 map->Points[i] = initial[i]; in init_1d_map()
964 map->Points = (GLfloat *) MALLOC(n * sizeof(GLfloat)); in init_2d_map()
965 if (map->Points) { in init_2d_map()
968 map->Points[i] = initial[i]; in init_2d_map()
1050 if (ctx->EvalMap.Map1Vertex3.Points) in _mesa_free_eval_data()
1051 FREE( ctx->EvalMap.Map1Vertex3.Points ); in _mesa_free_eval_data()
1052 if (ctx->EvalMap.Map1Vertex4.Points) in _mesa_free_eval_data()
1053 FREE( ctx->EvalMap.Map1Vertex4.Points ); in _mesa_free_eval_data()
1054 if (ctx->EvalMap.Map1Index.Points) in _mesa_free_eval_data()
1055 FREE( ctx->EvalMap.Map1Index.Points ); in _mesa_free_eval_data()
1056 if (ctx->EvalMap.Map1Color4.Points) in _mesa_free_eval_data()
1057 FREE( ctx->EvalMap.Map1Color4.Points ); in _mesa_free_eval_data()
1058 if (ctx->EvalMap.Map1Normal.Points) in _mesa_free_eval_data()
1059 FREE( ctx->EvalMap.Map1Normal.Points ); in _mesa_free_eval_data()
1060 if (ctx->EvalMap.Map1Texture1.Points) in _mesa_free_eval_data()
1061 FREE( ctx->EvalMap.Map1Texture1.Points ); in _mesa_free_eval_data()
1062 if (ctx->EvalMap.Map1Texture2.Points) in _mesa_free_eval_data()
1063 FREE( ctx->EvalMap.Map1Texture2.Points ); in _mesa_free_eval_data()
1064 if (ctx->EvalMap.Map1Texture3.Points) in _mesa_free_eval_data()
1065 FREE( ctx->EvalMap.Map1Texture3.Points ); in _mesa_free_eval_data()
1066 if (ctx->EvalMap.Map1Texture4.Points) in _mesa_free_eval_data()
1067 FREE( ctx->EvalMap.Map1Texture4.Points ); in _mesa_free_eval_data()
1069 FREE((ctx->EvalMap.Map1Attrib[i].Points)); in _mesa_free_eval_data()
1071 if (ctx->EvalMap.Map2Vertex3.Points) in _mesa_free_eval_data()
1072 FREE( ctx->EvalMap.Map2Vertex3.Points ); in _mesa_free_eval_data()
1073 if (ctx->EvalMap.Map2Vertex4.Points) in _mesa_free_eval_data()
1074 FREE( ctx->EvalMap.Map2Vertex4.Points ); in _mesa_free_eval_data()
1075 if (ctx->EvalMap.Map2Index.Points) in _mesa_free_eval_data()
1076 FREE( ctx->EvalMap.Map2Index.Points ); in _mesa_free_eval_data()
1077 if (ctx->EvalMap.Map2Color4.Points) in _mesa_free_eval_data()
1078 FREE( ctx->EvalMap.Map2Color4.Points ); in _mesa_free_eval_data()
1079 if (ctx->EvalMap.Map2Normal.Points) in _mesa_free_eval_data()
1080 FREE( ctx->EvalMap.Map2Normal.Points ); in _mesa_free_eval_data()
1081 if (ctx->EvalMap.Map2Texture1.Points) in _mesa_free_eval_data()
1082 FREE( ctx->EvalMap.Map2Texture1.Points ); in _mesa_free_eval_data()
1083 if (ctx->EvalMap.Map2Texture2.Points) in _mesa_free_eval_data()
1084 FREE( ctx->EvalMap.Map2Texture2.Points ); in _mesa_free_eval_data()
1085 if (ctx->EvalMap.Map2Texture3.Points) in _mesa_free_eval_data()
1086 FREE( ctx->EvalMap.Map2Texture3.Points ); in _mesa_free_eval_data()
1087 if (ctx->EvalMap.Map2Texture4.Points) in _mesa_free_eval_data()
1088 FREE( ctx->EvalMap.Map2Texture4.Points ); in _mesa_free_eval_data()
1090 FREE((ctx->EvalMap.Map2Attrib[i].Points)); in _mesa_free_eval_data()