Debian Codegraph @

debian/external_deps/fetk/sg/src/gl/eval.h

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