Initial revision
[mesa.git] / src / mesa / main / eval.h
1 /* $Id: eval.h,v 1.1 1999/08/19 00:55:41 jtg Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 3.1
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28 #ifndef EVAL_H
29 #define EVAL_H
30
31
32 #include "types.h"
33
34
35 extern void gl_init_eval( void );
36
37
38 extern void gl_free_control_points( GLcontext *ctx,
39 GLenum target, GLfloat *data );
40
41
42 extern GLfloat *gl_copy_map_points1f( GLenum target,
43 GLint ustride, GLint uorder,
44 const GLfloat *points );
45
46 extern GLfloat *gl_copy_map_points1d( GLenum target,
47 GLint ustride, GLint uorder,
48 const GLdouble *points );
49
50 extern GLfloat *gl_copy_map_points2f( GLenum target,
51 GLint ustride, GLint uorder,
52 GLint vstride, GLint vorder,
53 const GLfloat *points );
54
55 extern GLfloat *gl_copy_map_points2d(GLenum target,
56 GLint ustride, GLint uorder,
57 GLint vstride, GLint vorder,
58 const GLdouble *points );
59
60
61 extern void gl_Map1f( GLcontext* ctx,
62 GLenum target, GLfloat u1, GLfloat u2, GLint stride,
63 GLint order, const GLfloat *points, GLboolean retain );
64
65 extern void gl_Map2f( GLcontext* ctx, GLenum target,
66 GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
67 GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
68 const GLfloat *points, GLboolean retain );
69
70
71
72 extern void gl_MapGrid1f( GLcontext* ctx, GLint un, GLfloat u1, GLfloat u2 );
73
74 extern void gl_MapGrid2f( GLcontext* ctx,
75 GLint un, GLfloat u1, GLfloat u2,
76 GLint vn, GLfloat v1, GLfloat v2 );
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_EvalMesh1( GLcontext* ctx, GLenum mode, GLint i1, GLint i2 );
88
89 extern void gl_EvalMesh2( GLcontext* ctx, GLenum mode,
90 GLint i1, GLint i2, GLint j1, GLint j2 );
91
92 extern void gl_eval_vb( struct vertex_buffer *VB );
93
94
95 #endif