1 /* $Id: varray.h,v 1.4 1999/10/19 18:37:05 keithw 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_VertexPointer( GLcontext
*ctx
,
36 GLint size
, GLenum type
, GLsizei stride
,
40 extern void gl_NormalPointer( GLcontext
*ctx
,
41 GLenum type
, GLsizei stride
, const GLvoid
*ptr
);
44 extern void gl_ColorPointer( GLcontext
*ctx
,
45 GLint size
, GLenum type
, GLsizei stride
,
49 extern void gl_IndexPointer( GLcontext
*ctx
,
50 GLenum type
, GLsizei stride
,
54 extern void gl_TexCoordPointer( GLcontext
*ctx
,
55 GLint size
, GLenum type
, GLsizei stride
,
59 extern void gl_EdgeFlagPointer( GLcontext
*ctx
,
60 GLsizei stride
, const GLboolean
*ptr
);
63 extern void gl_GetPointerv( GLcontext
*ctx
, GLenum pname
, GLvoid
**params
);
67 extern void gl_DrawArrays( GLcontext
*ctx
,
68 GLenum mode
, GLint first
, GLsizei count
);
70 extern void gl_save_DrawArrays( GLcontext
*ctx
,
71 GLenum mode
, GLint first
, GLsizei count
);
74 extern void gl_DrawElements( GLcontext
*ctx
,
75 GLenum mode
, GLsizei count
,
76 GLenum type
, const GLvoid
*indices
);
78 extern void gl_save_DrawElements( GLcontext
*ctx
,
79 GLenum mode
, GLsizei count
,
80 GLenum type
, const GLvoid
*indices
);
83 extern void gl_InterleavedArrays( GLcontext
*ctx
,
84 GLenum format
, GLsizei stride
,
85 const GLvoid
*pointer
);
87 extern void gl_save_InterleavedArrays( GLcontext
*ctx
,
88 GLenum format
, GLsizei stride
,
89 const GLvoid
*pointer
);
92 extern void gl_DrawRangeElements( GLcontext
*ctx
, GLenum mode
, GLuint start
,
93 GLuint end
, GLsizei count
, GLenum type
,
94 const GLvoid
*indices
);
96 extern void gl_save_DrawRangeElements( GLcontext
*ctx
, GLenum mode
,
97 GLuint start
, GLuint end
, GLsizei count
,
98 GLenum type
, const GLvoid
*indices
);
101 extern void gl_exec_array_elements( GLcontext
*ctx
,
102 struct immediate
*IM
,
106 extern void gl_update_client_state( GLcontext
*ctx
);