OSDN Git Service

r600: add alpha test support
[android-x86/external-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  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
31  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
32  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33  */
34
35
36 #ifndef EVAL_H
37 #define EVAL_H
38
39
40 #include "mtypes.h"
41
42 #if _HAVE_FULL_GL
43
44 extern void _mesa_init_eval( GLcontext *ctx );
45 extern void _mesa_free_eval_data( GLcontext *ctx );
46
47
48 extern GLuint _mesa_evaluator_components( GLenum target );
49
50
51 extern void gl_free_control_points( GLcontext *ctx,
52                                     GLenum target, GLfloat *data );
53
54
55 extern GLfloat *_mesa_copy_map_points1f( GLenum target,
56                                       GLint ustride, GLint uorder,
57                                       const GLfloat *points );
58
59 extern GLfloat *_mesa_copy_map_points1d( GLenum target,
60                                       GLint ustride, GLint uorder,
61                                       const GLdouble *points );
62
63 extern GLfloat *_mesa_copy_map_points2f( GLenum target,
64                                       GLint ustride, GLint uorder,
65                                       GLint vstride, GLint vorder,
66                                       const GLfloat *points );
67
68 extern GLfloat *_mesa_copy_map_points2d(GLenum target,
69                                      GLint ustride, GLint uorder,
70                                      GLint vstride, GLint vorder,
71                                      const GLdouble *points );
72
73
74
75 extern void GLAPIENTRY
76 _mesa_Map1f( GLenum target, GLfloat u1, GLfloat u2, GLint stride,
77              GLint order, const GLfloat *points );
78
79 extern void GLAPIENTRY
80 _mesa_Map2f( GLenum target,
81              GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
82              GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
83              const GLfloat *points );
84
85 extern void GLAPIENTRY
86 _mesa_Map1d( GLenum target, GLdouble u1, GLdouble u2, GLint stride,
87              GLint order, const GLdouble *points );
88
89 extern void GLAPIENTRY
90 _mesa_Map2d( GLenum target,
91              GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
92              GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
93              const GLdouble *points );
94
95 extern void GLAPIENTRY
96 _mesa_MapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
97
98 extern void GLAPIENTRY
99 _mesa_MapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
100
101 extern void GLAPIENTRY
102 _mesa_MapGrid2f( GLint un, GLfloat u1, GLfloat u2,
103                  GLint vn, GLfloat v1, GLfloat v2 );
104
105 extern void GLAPIENTRY
106 _mesa_MapGrid2d( GLint un, GLdouble u1, GLdouble u2,
107                  GLint vn, GLdouble v1, GLdouble v2 );
108
109 extern void GLAPIENTRY
110 _mesa_GetMapdv( GLenum target, GLenum query, GLdouble *v );
111
112 extern void GLAPIENTRY
113 _mesa_GetMapfv( GLenum target, GLenum query, GLfloat *v );
114
115 extern void GLAPIENTRY
116 _mesa_GetMapiv( GLenum target, GLenum query, GLint *v );
117
118 #else
119
120 /** No-op */
121 #define _mesa_init_eval( c ) ((void)0)
122
123 /** No-op */
124 #define _mesa_free_eval_data( c ) ((void)0)
125
126 #endif
127
128 #endif