xref: /reactos/dll/opengl/mesa/eval.h (revision 5f2bebf7)
1*5f2bebf7SJérôme Gardou /* $Id: eval.h,v 1.2 1997/05/14 03:27:04 brianp Exp $ */
2*5f2bebf7SJérôme Gardou 
3*5f2bebf7SJérôme Gardou /*
4*5f2bebf7SJérôme Gardou  * Mesa 3-D graphics library
5*5f2bebf7SJérôme Gardou  * Version:  2.3
6*5f2bebf7SJérôme Gardou  * Copyright (C) 1995-1997  Brian Paul
7*5f2bebf7SJérôme Gardou  *
8*5f2bebf7SJérôme Gardou  * This library is free software; you can redistribute it and/or
9*5f2bebf7SJérôme Gardou  * modify it under the terms of the GNU Library General Public
10*5f2bebf7SJérôme Gardou  * License as published by the Free Software Foundation; either
11*5f2bebf7SJérôme Gardou  * version 2 of the License, or (at your option) any later version.
12*5f2bebf7SJérôme Gardou  *
13*5f2bebf7SJérôme Gardou  * This library is distributed in the hope that it will be useful,
14*5f2bebf7SJérôme Gardou  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15*5f2bebf7SJérôme Gardou  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16*5f2bebf7SJérôme Gardou  * Library General Public License for more details.
17*5f2bebf7SJérôme Gardou  *
18*5f2bebf7SJérôme Gardou  * You should have received a copy of the GNU Library General Public
19*5f2bebf7SJérôme Gardou  * License along with this library; if not, write to the Free
20*5f2bebf7SJérôme Gardou  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21*5f2bebf7SJérôme Gardou  */
22*5f2bebf7SJérôme Gardou 
23*5f2bebf7SJérôme Gardou 
24*5f2bebf7SJérôme Gardou /*
25*5f2bebf7SJérôme Gardou  * $Log: eval.h,v $
26*5f2bebf7SJérôme Gardou  * Revision 1.2  1997/05/14 03:27:04  brianp
27*5f2bebf7SJérôme Gardou  * removed context argument from gl_init_eval()
28*5f2bebf7SJérôme Gardou  *
29*5f2bebf7SJérôme Gardou  * Revision 1.1  1996/09/13 01:38:16  brianp
30*5f2bebf7SJérôme Gardou  * Initial revision
31*5f2bebf7SJérôme Gardou  *
32*5f2bebf7SJérôme Gardou  */
33*5f2bebf7SJérôme Gardou 
34*5f2bebf7SJérôme Gardou 
35*5f2bebf7SJérôme Gardou #ifndef EVAL_H
36*5f2bebf7SJérôme Gardou #define EVAL_H
37*5f2bebf7SJérôme Gardou 
38*5f2bebf7SJérôme Gardou 
39*5f2bebf7SJérôme Gardou #include "types.h"
40*5f2bebf7SJérôme Gardou 
41*5f2bebf7SJérôme Gardou 
42*5f2bebf7SJérôme Gardou extern void gl_init_eval( void );
43*5f2bebf7SJérôme Gardou 
44*5f2bebf7SJérôme Gardou 
45*5f2bebf7SJérôme Gardou extern void gl_free_control_points( GLcontext *ctx,
46*5f2bebf7SJérôme Gardou                                     GLenum target, GLfloat *data );
47*5f2bebf7SJérôme Gardou 
48*5f2bebf7SJérôme Gardou 
49*5f2bebf7SJérôme Gardou extern GLfloat *gl_copy_map_points1f( GLenum target,
50*5f2bebf7SJérôme Gardou                                       GLint ustride, GLint uorder,
51*5f2bebf7SJérôme Gardou                                       const GLfloat *points );
52*5f2bebf7SJérôme Gardou 
53*5f2bebf7SJérôme Gardou extern GLfloat *gl_copy_map_points1d( GLenum target,
54*5f2bebf7SJérôme Gardou                                       GLint ustride, GLint uorder,
55*5f2bebf7SJérôme Gardou                                       const GLdouble *points );
56*5f2bebf7SJérôme Gardou 
57*5f2bebf7SJérôme Gardou extern GLfloat *gl_copy_map_points2f( GLenum target,
58*5f2bebf7SJérôme Gardou                                       GLint ustride, GLint uorder,
59*5f2bebf7SJérôme Gardou                                       GLint vstride, GLint vorder,
60*5f2bebf7SJérôme Gardou                                       const GLfloat *points );
61*5f2bebf7SJérôme Gardou 
62*5f2bebf7SJérôme Gardou extern GLfloat *gl_copy_map_points2d(GLenum target,
63*5f2bebf7SJérôme Gardou                                      GLint ustride, GLint uorder,
64*5f2bebf7SJérôme Gardou                                      GLint vstride, GLint vorder,
65*5f2bebf7SJérôme Gardou                                      const GLdouble *points );
66*5f2bebf7SJérôme Gardou 
67*5f2bebf7SJérôme Gardou 
68*5f2bebf7SJérôme Gardou extern void gl_Map1f( GLcontext* ctx,
69*5f2bebf7SJérôme Gardou                       GLenum target, GLfloat u1, GLfloat u2, GLint stride,
70*5f2bebf7SJérôme Gardou                       GLint order, const GLfloat *points, GLboolean retain );
71*5f2bebf7SJérôme Gardou 
72*5f2bebf7SJérôme Gardou extern void gl_Map2f( GLcontext* ctx, GLenum target,
73*5f2bebf7SJérôme Gardou                       GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
74*5f2bebf7SJérôme Gardou                       GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
75*5f2bebf7SJérôme Gardou                       const GLfloat *points, GLboolean retain );
76*5f2bebf7SJérôme Gardou 
77*5f2bebf7SJérôme Gardou 
78*5f2bebf7SJérôme Gardou extern void gl_EvalCoord1f( GLcontext* ctx, GLfloat u );
79*5f2bebf7SJérôme Gardou 
80*5f2bebf7SJérôme Gardou extern void gl_EvalCoord2f( GLcontext* ctx, GLfloat u, GLfloat v );
81*5f2bebf7SJérôme Gardou 
82*5f2bebf7SJérôme Gardou 
83*5f2bebf7SJérôme Gardou extern void gl_MapGrid1f( GLcontext* ctx, GLint un, GLfloat u1, GLfloat u2 );
84*5f2bebf7SJérôme Gardou 
85*5f2bebf7SJérôme Gardou extern void gl_MapGrid2f( GLcontext* ctx,
86*5f2bebf7SJérôme Gardou                           GLint un, GLfloat u1, GLfloat u2,
87*5f2bebf7SJérôme Gardou                           GLint vn, GLfloat v1, GLfloat v2 );
88*5f2bebf7SJérôme Gardou 
89*5f2bebf7SJérôme Gardou 
90*5f2bebf7SJérôme Gardou extern void gl_GetMapdv( GLcontext* ctx,
91*5f2bebf7SJérôme Gardou                          GLenum target, GLenum query, GLdouble *v );
92*5f2bebf7SJérôme Gardou 
93*5f2bebf7SJérôme Gardou extern void gl_GetMapfv( GLcontext* ctx,
94*5f2bebf7SJérôme Gardou                          GLenum target, GLenum query, GLfloat *v );
95*5f2bebf7SJérôme Gardou 
96*5f2bebf7SJérôme Gardou extern void gl_GetMapiv( GLcontext* ctx,
97*5f2bebf7SJérôme Gardou                          GLenum target, GLenum query, GLint *v );
98*5f2bebf7SJérôme Gardou 
99*5f2bebf7SJérôme Gardou extern void gl_EvalPoint1( GLcontext* ctx, GLint i );
100*5f2bebf7SJérôme Gardou 
101*5f2bebf7SJérôme Gardou extern void gl_EvalPoint2( GLcontext* ctx, GLint i, GLint j );
102*5f2bebf7SJérôme Gardou 
103*5f2bebf7SJérôme Gardou extern void gl_EvalMesh1( GLcontext* ctx, GLenum mode, GLint i1, GLint i2 );
104*5f2bebf7SJérôme Gardou 
105*5f2bebf7SJérôme Gardou extern void gl_EvalMesh2( GLcontext* ctx, GLenum mode,
106*5f2bebf7SJérôme Gardou                           GLint i1, GLint i2, GLint j1, GLint j2 );
107*5f2bebf7SJérôme Gardou 
108*5f2bebf7SJérôme Gardou #endif
109