home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / System / Mesa-3.1 / src / varray.h < prev    next >
C/C++ Source or Header  |  2000-01-07  |  4KB  |  116 lines

  1. /* $Id: varray.h,v 1.4 1999/10/19 18:37:05 keithw 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.  
  29.  
  30.  
  31. #ifndef VARRAY_H
  32. #define VARRAY_H
  33.  
  34.  
  35. #include "types.h"
  36.  
  37.  
  38. extern void gl_VertexPointer( GLcontext *ctx,
  39.                               GLint size, GLenum type, GLsizei stride,
  40.                               const GLvoid *ptr );
  41.  
  42.  
  43. extern void gl_NormalPointer( GLcontext *ctx,
  44.                               GLenum type, GLsizei stride, const GLvoid *ptr );
  45.  
  46.  
  47. extern void gl_ColorPointer( GLcontext *ctx,
  48.                              GLint size, GLenum type, GLsizei stride,
  49.                              const GLvoid *ptr );
  50.  
  51.  
  52. extern void gl_IndexPointer( GLcontext *ctx,
  53.                                 GLenum type, GLsizei stride,
  54.                                 const GLvoid *ptr );
  55.  
  56.  
  57. extern void gl_TexCoordPointer( GLcontext *ctx,
  58.                                 GLint size, GLenum type, GLsizei stride,
  59.                                 const GLvoid *ptr );
  60.  
  61.  
  62. extern void gl_EdgeFlagPointer( GLcontext *ctx,
  63.                                 GLsizei stride, const GLboolean *ptr );
  64.  
  65.  
  66. extern void gl_GetPointerv( GLcontext *ctx, GLenum pname, GLvoid **params );
  67.  
  68.  
  69.  
  70. extern void gl_DrawArrays( GLcontext *ctx,
  71.                            GLenum mode, GLint first, GLsizei count );
  72.  
  73. extern void gl_save_DrawArrays( GLcontext *ctx,
  74.                                 GLenum mode, GLint first, GLsizei count );
  75.  
  76.  
  77. extern void gl_DrawElements( GLcontext *ctx,
  78.                              GLenum mode, GLsizei count,
  79.                              GLenum type, const GLvoid *indices );
  80.  
  81. extern void gl_save_DrawElements( GLcontext *ctx,
  82.                                   GLenum mode, GLsizei count,
  83.                                   GLenum type, const GLvoid *indices );
  84.  
  85.  
  86. extern void gl_InterleavedArrays( GLcontext *ctx,
  87.                                   GLenum format, GLsizei stride,
  88.                                   const GLvoid *pointer );
  89.  
  90. extern void gl_save_InterleavedArrays( GLcontext *ctx,
  91.                                        GLenum format, GLsizei stride,
  92.                                        const GLvoid *pointer );
  93.  
  94.  
  95. extern void gl_DrawRangeElements( GLcontext *ctx, GLenum mode, GLuint start,
  96.                                   GLuint end, GLsizei count, GLenum type,
  97.                                   const GLvoid *indices );
  98.  
  99. extern void gl_save_DrawRangeElements( GLcontext *ctx, GLenum mode,
  100.                                        GLuint start, GLuint end, GLsizei count,
  101.                                        GLenum type, const GLvoid *indices );
  102.  
  103.  
  104.  
  105. extern void gl_exec_array_elements( GLcontext *ctx, 
  106.                     struct immediate *IM,
  107.                     GLuint start, 
  108.                     GLuint end );
  109.  
  110. extern void gl_update_client_state( GLcontext *ctx );
  111.  
  112. #endif
  113.  
  114.  
  115.  
  116.