Lines Matching full: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 ) in _mesa_copy_map_points1f() argument
162 if (!points || !size) in _mesa_copy_map_points1f()
168 for (i = 0, p = buffer; i < uorder; i++, points += ustride) in _mesa_copy_map_points1f()
170 *p++ = points[k]; in _mesa_copy_map_points1f()
181 const GLdouble *points ) in _mesa_copy_map_points1d() argument
186 if (!points || !size) in _mesa_copy_map_points1d()
192 for (i = 0, p = buffer; i < uorder; i++, points += ustride) in _mesa_copy_map_points1d()
194 *p++ = (GLfloat) points[k]; in _mesa_copy_map_points1d()
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 ) in _mesa_copy_map_points2f() argument
222 if (!points || size==0) { in _mesa_copy_map_points2f()
226 /* max(uorder, vorder) additional points are used in */ in _mesa_copy_map_points2f()
241 for (i=0, p=buffer; i<uorder; i++, points += uinc) in _mesa_copy_map_points2f()
242 for (j=0; j<vorder; j++, points += vstride) in _mesa_copy_map_points2f()
244 *p++ = points[k]; in _mesa_copy_map_points2f()
257 const GLdouble *points ) in _mesa_copy_map_points2d() argument
265 if (!points || size==0) { in _mesa_copy_map_points2d()
269 /* max(uorder, vorder) additional points are used in */ in _mesa_copy_map_points2d()
284 for (i=0, p=buffer; i<uorder; i++, points += uinc) in _mesa_copy_map_points2d()
285 for (j=0; j<vorder; j++, points += vstride) in _mesa_copy_map_points2d()
287 *p++ = (GLfloat) points[k]; in _mesa_copy_map_points2d()
296 /*** API entry points ***/
305 GLint uorder, const GLvoid *points, GLenum type ) in map1() argument
322 if (!points) { in map1()
323 _mesa_error( ctx, GL_INVALID_VALUE, "glMap1(points)" ); in map1()
350 /* make copy of the control points */ in map1()
352 pnts = _mesa_copy_map_points1f(target, ustride, uorder, (GLfloat*) points); in map1()
354 pnts = _mesa_copy_map_points1d(target, ustride, uorder, (GLdouble*) points); in map1()
363 free(map->Points); in map1()
364 map->Points = pnts; in map1()
371 GLint order, const GLfloat *points ) in _mesa_Map1f() argument
373 map1(target, u1, u2, stride, order, points, GL_FLOAT); in _mesa_Map1f()
379 GLint order, const GLdouble *points ) in _mesa_Map1d() argument
381 map1(target, (GLfloat) u1, (GLfloat) u2, stride, order, points, GL_DOUBLE); in _mesa_Map1d()
388 const GLvoid *points, GLenum type ) in map2() argument
444 /* make copy of the control points */ in map2()
447 vstride, vorder, (GLfloat*) points); in map2()
450 vstride, vorder, (GLdouble*) points); in map2()
463 free(map->Points); in map2()
464 map->Points = pnts; in map2()
472 const GLfloat *points) in _mesa_Map2f() argument
475 points, GL_FLOAT); in _mesa_Map2f()
483 const GLdouble *points ) in _mesa_Map2d() argument
486 (GLfloat) v1, (GLfloat) v2, vstride, vorder, points, GL_DOUBLE); in _mesa_Map2d()
515 data = map1d->Points; in _mesa_GetnMapdvARB()
519 data = map2d->Points; in _mesa_GetnMapdvARB()
605 data = map1d->Points; in _mesa_GetnMapfvARB()
609 data = map2d->Points; in _mesa_GetnMapfvARB()
697 data = map1d->Points; in _mesa_GetnMapivARB()
701 data = map2d->Points; in _mesa_GetnMapivARB()
840 map->Points = malloc(n * sizeof(GLfloat)); in init_1d_map()
841 if (map->Points) { in init_1d_map()
844 map->Points[i] = initial[i]; in init_1d_map()
861 map->Points = malloc(n * sizeof(GLfloat)); in init_2d_map()
862 if (map->Points) { in init_2d_map()
865 map->Points[i] = initial[i]; in init_2d_map()
936 free(ctx->EvalMap.Map1Vertex3.Points); in _mesa_free_eval_data()
937 free(ctx->EvalMap.Map1Vertex4.Points); in _mesa_free_eval_data()
938 free(ctx->EvalMap.Map1Index.Points); in _mesa_free_eval_data()
939 free(ctx->EvalMap.Map1Color4.Points); in _mesa_free_eval_data()
940 free(ctx->EvalMap.Map1Normal.Points); in _mesa_free_eval_data()
941 free(ctx->EvalMap.Map1Texture1.Points); in _mesa_free_eval_data()
942 free(ctx->EvalMap.Map1Texture2.Points); in _mesa_free_eval_data()
943 free(ctx->EvalMap.Map1Texture3.Points); in _mesa_free_eval_data()
944 free(ctx->EvalMap.Map1Texture4.Points); in _mesa_free_eval_data()
946 free(ctx->EvalMap.Map2Vertex3.Points); in _mesa_free_eval_data()
947 free(ctx->EvalMap.Map2Vertex4.Points); in _mesa_free_eval_data()
948 free(ctx->EvalMap.Map2Index.Points); in _mesa_free_eval_data()
949 free(ctx->EvalMap.Map2Color4.Points); in _mesa_free_eval_data()
950 free(ctx->EvalMap.Map2Normal.Points); in _mesa_free_eval_data()
951 free(ctx->EvalMap.Map2Texture1.Points); in _mesa_free_eval_data()
952 free(ctx->EvalMap.Map2Texture2.Points); in _mesa_free_eval_data()
953 free(ctx->EvalMap.Map2Texture3.Points); in _mesa_free_eval_data()
954 free(ctx->EvalMap.Map2Texture4.Points); in _mesa_free_eval_data()