home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mesa5.zip / mesa5src.zip / eval.h < prev    next >
C/C++ Source or Header  |  2001-03-11  |  4KB  |  110 lines

  1. /* $Id: eval.h,v 1.6 2001/03/12 00:48:37 gareth Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  3.5
  6.  *
  7.  * Copyright (C) 1999-2001  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 "mtypes.h"
  33.  
  34.  
  35. extern void _mesa_init_eval( void );
  36.  
  37.  
  38. extern GLuint _mesa_evaluator_components( GLenum target );
  39.  
  40.  
  41. extern void gl_free_control_points( GLcontext *ctx,
  42.                                     GLenum target, GLfloat *data );
  43.  
  44.  
  45. extern GLfloat *_mesa_copy_map_points1f( GLenum target,
  46.                                       GLint ustride, GLint uorder,
  47.                                       const GLfloat *points );
  48.  
  49. extern GLfloat *_mesa_copy_map_points1d( GLenum target,
  50.                                       GLint ustride, GLint uorder,
  51.                                       const GLdouble *points );
  52.  
  53. extern GLfloat *_mesa_copy_map_points2f( GLenum target,
  54.                                       GLint ustride, GLint uorder,
  55.                                       GLint vstride, GLint vorder,
  56.                                       const GLfloat *points );
  57.  
  58. extern GLfloat *_mesa_copy_map_points2d(GLenum target,
  59.                                      GLint ustride, GLint uorder,
  60.                                      GLint vstride, GLint vorder,
  61.                                      const GLdouble *points );
  62.  
  63.  
  64.  
  65. extern void
  66. _mesa_Map1f( GLenum target, GLfloat u1, GLfloat u2, GLint stride,
  67.              GLint order, const GLfloat *points );
  68.  
  69. extern void
  70. _mesa_Map2f( GLenum target,
  71.              GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
  72.              GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
  73.              const GLfloat *points );
  74.  
  75. extern void
  76. _mesa_Map1d( GLenum target, GLdouble u1, GLdouble u2, GLint stride,
  77.              GLint order, const GLdouble *points );
  78.  
  79. extern void
  80. _mesa_Map2d( GLenum target,
  81.              GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
  82.              GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
  83.              const GLdouble *points );
  84.  
  85. extern void
  86. _mesa_MapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
  87.  
  88. extern void
  89. _mesa_MapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
  90.  
  91. extern void
  92. _mesa_MapGrid2f( GLint un, GLfloat u1, GLfloat u2,
  93.                  GLint vn, GLfloat v1, GLfloat v2 );
  94.  
  95. extern void
  96. _mesa_MapGrid2d( GLint un, GLdouble u1, GLdouble u2,
  97.                  GLint vn, GLdouble v1, GLdouble v2 );
  98.  
  99. extern void
  100. _mesa_GetMapdv( GLenum target, GLenum query, GLdouble *v );
  101.  
  102. extern void
  103. _mesa_GetMapfv( GLenum target, GLenum query, GLfloat *v );
  104.  
  105. extern void
  106. _mesa_GetMapiv( GLenum target, GLenum query, GLint *v );
  107.  
  108.  
  109. #endif
  110.