1 /* $Id: eval.h,v 1.6 2001/03/12 00:48:37 gareth Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 extern void _mesa_init_eval( void );
38 extern GLuint
_mesa_evaluator_components( GLenum target
);
41 extern void gl_free_control_points( GLcontext
*ctx
,
42 GLenum target
, GLfloat
*data
);
45 extern GLfloat
*_mesa_copy_map_points1f( GLenum target
,
46 GLint ustride
, GLint uorder
,
47 const GLfloat
*points
);
49 extern GLfloat
*_mesa_copy_map_points1d( GLenum target
,
50 GLint ustride
, GLint uorder
,
51 const GLdouble
*points
);
53 extern GLfloat
*_mesa_copy_map_points2f( GLenum target
,
54 GLint ustride
, GLint uorder
,
55 GLint vstride
, GLint vorder
,
56 const GLfloat
*points
);
58 extern GLfloat
*_mesa_copy_map_points2d(GLenum target
,
59 GLint ustride
, GLint uorder
,
60 GLint vstride
, GLint vorder
,
61 const GLdouble
*points
);
66 _mesa_Map1f( GLenum target
, GLfloat u1
, GLfloat u2
, GLint stride
,
67 GLint order
, const GLfloat
*points
);
70 _mesa_Map2f( GLenum target
,
71 GLfloat u1
, GLfloat u2
, GLint ustride
, GLint uorder
,
72 GLfloat v1
, GLfloat v2
, GLint vstride
, GLint vorder
,
73 const GLfloat
*points
);
76 _mesa_Map1d( GLenum target
, GLdouble u1
, GLdouble u2
, GLint stride
,
77 GLint order
, const GLdouble
*points
);
80 _mesa_Map2d( GLenum target
,
81 GLdouble u1
, GLdouble u2
, GLint ustride
, GLint uorder
,
82 GLdouble v1
, GLdouble v2
, GLint vstride
, GLint vorder
,
83 const GLdouble
*points
);
86 _mesa_MapGrid1f( GLint un
, GLfloat u1
, GLfloat u2
);
89 _mesa_MapGrid1d( GLint un
, GLdouble u1
, GLdouble u2
);
92 _mesa_MapGrid2f( GLint un
, GLfloat u1
, GLfloat u2
,
93 GLint vn
, GLfloat v1
, GLfloat v2
);
96 _mesa_MapGrid2d( GLint un
, GLdouble u1
, GLdouble u2
,
97 GLint vn
, GLdouble v1
, GLdouble v2
);
100 _mesa_GetMapdv( GLenum target
, GLenum query
, GLdouble
*v
);
103 _mesa_GetMapfv( GLenum target
, GLenum query
, GLfloat
*v
);
106 _mesa_GetMapiv( GLenum target
, GLenum query
, GLint
*v
);