1 /* $Id: eval.h,v 1.1 1999/08/19 00:55:41 jtg Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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.
35 extern void gl_init_eval( void );
38 extern void gl_free_control_points( GLcontext
*ctx
,
39 GLenum target
, GLfloat
*data
);
42 extern GLfloat
*gl_copy_map_points1f( GLenum target
,
43 GLint ustride
, GLint uorder
,
44 const GLfloat
*points
);
46 extern GLfloat
*gl_copy_map_points1d( GLenum target
,
47 GLint ustride
, GLint uorder
,
48 const GLdouble
*points
);
50 extern GLfloat
*gl_copy_map_points2f( GLenum target
,
51 GLint ustride
, GLint uorder
,
52 GLint vstride
, GLint vorder
,
53 const GLfloat
*points
);
55 extern GLfloat
*gl_copy_map_points2d(GLenum target
,
56 GLint ustride
, GLint uorder
,
57 GLint vstride
, GLint vorder
,
58 const GLdouble
*points
);
61 extern void gl_Map1f( GLcontext
* ctx
,
62 GLenum target
, GLfloat u1
, GLfloat u2
, GLint stride
,
63 GLint order
, const GLfloat
*points
, GLboolean retain
);
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
);
72 extern void gl_MapGrid1f( GLcontext
* ctx
, GLint un
, GLfloat u1
, GLfloat u2
);
74 extern void gl_MapGrid2f( GLcontext
* ctx
,
75 GLint un
, GLfloat u1
, GLfloat u2
,
76 GLint vn
, GLfloat v1
, GLfloat v2
);
78 extern void gl_GetMapdv( GLcontext
* ctx
,
79 GLenum target
, GLenum query
, GLdouble
*v
);
81 extern void gl_GetMapfv( GLcontext
* ctx
,
82 GLenum target
, GLenum query
, GLfloat
*v
);
84 extern void gl_GetMapiv( GLcontext
* ctx
,
85 GLenum target
, GLenum query
, GLint
*v
);
87 extern void gl_EvalMesh1( GLcontext
* ctx
, GLenum mode
, GLint i1
, GLint i2
);
89 extern void gl_EvalMesh2( GLcontext
* ctx
, GLenum mode
,
90 GLint i1
, GLint i2
, GLint j1
, GLint j2
);
92 extern void gl_eval_vb( struct vertex_buffer
*VB
);