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