12 * Mesa 3-D graphics library
15 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
17 * Permission is hereby granted, free of charge, to any person obtaining a
18 * copy of this software and associated documentation files (the "Software"),
19 * to deal in the Software without restriction, including without limitation
20 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
21 * and/or sell copies of the Software, and to permit persons to whom the
22 * Software is furnished to do so, subject to the following conditions:
24 * The above copyright notice and this permission notice shall be included
25 * in all copies or substantial portions of the Software.
27 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
28 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
30 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
31 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
32 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
33 * OTHER DEALINGS IN THE SOFTWARE.
41 #include "main/mtypes.h"
45 #define _MESA_INIT_EVAL_VTXFMT(vfmt, impl) \
47 (vfmt)->EvalCoord1f = impl ## EvalCoord1f; \
48 (vfmt)->EvalCoord1fv = impl ## EvalCoord1fv; \
49 (vfmt)->EvalCoord2f = impl ## EvalCoord2f; \
50 (vfmt)->EvalCoord2fv = impl ## EvalCoord2fv; \
51 (vfmt)->EvalPoint1 = impl ## EvalPoint1; \
52 (vfmt)->EvalPoint2 = impl ## EvalPoint2; \
53 (vfmt)->EvalMesh1 = impl ## EvalMesh1; \
54 (vfmt)->EvalMesh2 = impl ## EvalMesh2; \
57 extern GLuint
_mesa_evaluator_components( GLenum target
);
60 extern GLfloat
*_mesa_copy_map_points1f( GLenum target
,
61 GLint ustride
, GLint uorder
,
62 const GLfloat
*points
);
64 extern GLfloat
*_mesa_copy_map_points1d( GLenum target
,
65 GLint ustride
, GLint uorder
,
66 const GLdouble
*points
);
68 extern GLfloat
*_mesa_copy_map_points2f( GLenum target
,
69 GLint ustride
, GLint uorder
,
70 GLint vstride
, GLint vorder
,
71 const GLfloat
*points
);
73 extern GLfloat
*_mesa_copy_map_points2d(GLenum target
,
74 GLint ustride
, GLint uorder
,
75 GLint vstride
, GLint vorder
,
76 const GLdouble
*points
);
79 _mesa_install_eval_vtxfmt(struct _glapi_table
*disp
,
80 const GLvertexformat
*vfmt
,
83 extern void _mesa_init_eval( struct gl_context
*ctx
);
84 extern void _mesa_free_eval_data( struct gl_context
*ctx
);
87 _mesa_Map1f( GLenum target
, GLfloat u1
, GLfloat u2
, GLint stride
,
88 GLint order
, const GLfloat
*points
);
90 _mesa_Map1d( GLenum target
, GLdouble u1
, GLdouble u2
, GLint stride
,
91 GLint order
, const GLdouble
*points
);
93 _mesa_Map2f( GLenum target
,
94 GLfloat u1
, GLfloat u2
, GLint ustride
, GLint uorder
,
95 GLfloat v1
, GLfloat v2
, GLint vstride
, GLint vorder
,
96 const GLfloat
*points
);
98 _mesa_Map2d( GLenum target
,
99 GLdouble u1
, GLdouble u2
, GLint ustride
, GLint uorder
,
100 GLdouble v1
, GLdouble v2
, GLint vstride
, GLint vorder
,
101 const GLdouble
*points
);
103 _mesa_GetnMapdvARB( GLenum target
, GLenum query
, GLsizei bufSize
,
106 _mesa_GetMapdv( GLenum target
, GLenum query
, GLdouble
*v
);
108 _mesa_GetnMapfvARB( GLenum target
, GLenum query
, GLsizei bufSize
, GLfloat
*v
);
110 _mesa_GetMapfv( GLenum target
, GLenum query
, GLfloat
*v
);
112 _mesa_GetnMapivARB( GLenum target
, GLenum query
, GLsizei bufSize
, GLint
*v
);
114 _mesa_GetMapiv( GLenum target
, GLenum query
, GLint
*v
);
116 _mesa_MapGrid1f( GLint un
, GLfloat u1
, GLfloat u2
);
118 _mesa_MapGrid1d( GLint un
, GLdouble u1
, GLdouble u2
);
120 _mesa_MapGrid2f( GLint un
, GLfloat u1
, GLfloat u2
,
121 GLint vn
, GLfloat v1
, GLfloat v2
);
123 _mesa_MapGrid2d( GLint un
, GLdouble u1
, GLdouble u2
,
124 GLint vn
, GLdouble v1
, GLdouble v2
);