varray.h revision c1f859d4
1/**
2 * \file varray.h
3 * Vertex arrays.
4 *
5 * \if subset
6 * (No-op)
7 *
8 * \endif
9 */
10
11/*
12 * Mesa 3-D graphics library
13 * Version:  4.1
14 *
15 * Copyright (C) 1999-2002  Brian Paul   All Rights Reserved.
16 *
17 * Permission is hereby granted, free of charge, to any person obtaining a
18 * copy of this software and associated documentation files (the "Software"),
19 * to deal in the Software without restriction, including without limitation
20 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
21 * and/or sell copies of the Software, and to permit persons to whom the
22 * Software is furnished to do so, subject to the following conditions:
23 *
24 * The above copyright notice and this permission notice shall be included
25 * in all copies or substantial portions of the Software.
26 *
27 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
28 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
30 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
31 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
32 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 */
34
35
36#ifndef VARRAY_H
37#define VARRAY_H
38
39
40#include "mtypes.h"
41
42#if _HAVE_FULL_GL
43
44extern void GLAPIENTRY
45_mesa_VertexPointer(GLint size, GLenum type, GLsizei stride,
46                    const GLvoid *ptr);
47
48extern void GLAPIENTRY
49_mesa_UnlockArraysEXT( void );
50
51extern void GLAPIENTRY
52_mesa_LockArraysEXT(GLint first, GLsizei count);
53
54
55extern void GLAPIENTRY
56_mesa_NormalPointer(GLenum type, GLsizei stride, const GLvoid *ptr);
57
58
59extern void GLAPIENTRY
60_mesa_ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr);
61
62
63extern void GLAPIENTRY
64_mesa_IndexPointer(GLenum type, GLsizei stride, const GLvoid *ptr);
65
66
67extern void GLAPIENTRY
68_mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride,
69                      const GLvoid *ptr);
70
71
72extern void GLAPIENTRY
73_mesa_EdgeFlagPointer(GLsizei stride, const GLvoid *ptr);
74
75
76extern void GLAPIENTRY
77_mesa_VertexPointerEXT(GLint size, GLenum type, GLsizei stride,
78                       GLsizei count, const GLvoid *ptr);
79
80
81extern void GLAPIENTRY
82_mesa_NormalPointerEXT(GLenum type, GLsizei stride, GLsizei count,
83                       const GLvoid *ptr);
84
85
86extern void GLAPIENTRY
87_mesa_ColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count,
88                      const GLvoid *ptr);
89
90
91extern void GLAPIENTRY
92_mesa_IndexPointerEXT(GLenum type, GLsizei stride, GLsizei count,
93                      const GLvoid *ptr);
94
95
96extern void GLAPIENTRY
97_mesa_TexCoordPointerEXT(GLint size, GLenum type, GLsizei stride,
98                         GLsizei count, const GLvoid *ptr);
99
100
101extern void GLAPIENTRY
102_mesa_EdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean *ptr);
103
104
105extern void GLAPIENTRY
106_mesa_FogCoordPointerEXT(GLenum type, GLsizei stride, const GLvoid *ptr);
107
108
109extern void GLAPIENTRY
110_mesa_SecondaryColorPointerEXT(GLint size, GLenum type,
111			       GLsizei stride, const GLvoid *ptr);
112
113
114extern void GLAPIENTRY
115_mesa_PointSizePointer(GLenum type, GLsizei stride, const GLvoid *ptr);
116
117
118extern void GLAPIENTRY
119_mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type,
120                            GLsizei stride, const GLvoid *pointer);
121
122
123extern void GLAPIENTRY
124_mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type,
125                             GLboolean normalized, GLsizei stride,
126                             const GLvoid *pointer);
127
128
129extern void GLAPIENTRY
130_mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer);
131
132
133extern void GLAPIENTRY
134_mesa_MultiDrawArraysEXT( GLenum mode, GLint *first,
135                          GLsizei *count, GLsizei primcount );
136
137extern void GLAPIENTRY
138_mesa_MultiDrawElementsEXT( GLenum mode, const GLsizei *count, GLenum type,
139                            const GLvoid **indices, GLsizei primcount );
140
141
142extern void GLAPIENTRY
143_mesa_MultiModeDrawArraysIBM( const GLenum * mode, const GLint * first,
144			      const GLsizei * count,
145			      GLsizei primcount, GLint modestride );
146
147
148extern void GLAPIENTRY
149_mesa_MultiModeDrawElementsIBM( const GLenum * mode, const GLsizei * count,
150				GLenum type, const GLvoid * const * indices,
151				GLsizei primcount, GLint modestride );
152
153extern void GLAPIENTRY
154_mesa_LockArraysEXT(GLint first, GLsizei count);
155
156extern void GLAPIENTRY
157_mesa_UnlockArraysEXT( void );
158
159extern void
160_mesa_init_varray( GLcontext * ctx );
161
162#else
163
164/** No-op */
165#define _mesa_init_varray( c )  ((void)0)
166
167#endif
168
169#endif
170