mesa: remove _MESA_INIT_EVAL_VTXFMT() macro
[mesa.git] / src / mesa / main / eval.h
1 /**
2 * \file eval.h
3 * Eval operations.
4 *
5 * \if subset
6 * (No-op)
7 *
8 * \endif
9 */
10
11 /*
12 * Mesa 3-D graphics library
13 * Version: 3.5
14 *
15 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
16 *
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:
23 *
24 * The above copyright notice and this permission notice shall be included
25 * in all copies or substantial portions of the Software.
26 *
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.
34 */
35
36
37 #ifndef EVAL_H
38 #define EVAL_H
39
40
41 #include "main/mtypes.h"
42 #include <stdbool.h>
43
44
45 extern GLuint _mesa_evaluator_components( GLenum target );
46
47
48 extern GLfloat *_mesa_copy_map_points1f( GLenum target,
49 GLint ustride, GLint uorder,
50 const GLfloat *points );
51
52 extern GLfloat *_mesa_copy_map_points1d( GLenum target,
53 GLint ustride, GLint uorder,
54 const GLdouble *points );
55
56 extern GLfloat *_mesa_copy_map_points2f( GLenum target,
57 GLint ustride, GLint uorder,
58 GLint vstride, GLint vorder,
59 const GLfloat *points );
60
61 extern GLfloat *_mesa_copy_map_points2d(GLenum target,
62 GLint ustride, GLint uorder,
63 GLint vstride, GLint vorder,
64 const GLdouble *points );
65
66 extern void
67 _mesa_install_eval_vtxfmt(struct _glapi_table *disp,
68 const GLvertexformat *vfmt,
69 bool beginend);
70
71 extern void _mesa_init_eval( struct gl_context *ctx );
72 extern void _mesa_free_eval_data( struct gl_context *ctx );
73
74 void GLAPIENTRY
75 _mesa_Map1f( GLenum target, GLfloat u1, GLfloat u2, GLint stride,
76 GLint order, const GLfloat *points );
77 void GLAPIENTRY
78 _mesa_Map1d( GLenum target, GLdouble u1, GLdouble u2, GLint stride,
79 GLint order, const GLdouble *points );
80 void GLAPIENTRY
81 _mesa_Map2f( GLenum target,
82 GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
83 GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
84 const GLfloat *points);
85 void GLAPIENTRY
86 _mesa_Map2d( GLenum target,
87 GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
88 GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
89 const GLdouble *points );
90 void GLAPIENTRY
91 _mesa_GetnMapdvARB( GLenum target, GLenum query, GLsizei bufSize,
92 GLdouble *v );
93 void GLAPIENTRY
94 _mesa_GetMapdv( GLenum target, GLenum query, GLdouble *v );
95 void GLAPIENTRY
96 _mesa_GetnMapfvARB( GLenum target, GLenum query, GLsizei bufSize, GLfloat *v );
97 void GLAPIENTRY
98 _mesa_GetMapfv( GLenum target, GLenum query, GLfloat *v );
99 void GLAPIENTRY
100 _mesa_GetnMapivARB( GLenum target, GLenum query, GLsizei bufSize, GLint *v );
101 void GLAPIENTRY
102 _mesa_GetMapiv( GLenum target, GLenum query, GLint *v );
103 void GLAPIENTRY
104 _mesa_MapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
105 void GLAPIENTRY
106 _mesa_MapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
107 void GLAPIENTRY
108 _mesa_MapGrid2f( GLint un, GLfloat u1, GLfloat u2,
109 GLint vn, GLfloat v1, GLfloat v2 );
110 void GLAPIENTRY
111 _mesa_MapGrid2d( GLint un, GLdouble u1, GLdouble u2,
112 GLint vn, GLdouble v1, GLdouble v2 );
113
114 #endif /* EVAL_H */