varray.h revision 7117f1b4
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_VertexAttribPointerNV(GLuint index, GLint size, GLenum type,
116                            GLsizei stride, const GLvoid *pointer);
117
118
119extern void GLAPIENTRY
120_mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type,
121                             GLboolean normalized, GLsizei stride,
122                             const GLvoid *pointer);
123
124
125extern void GLAPIENTRY
126_mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer);
127
128
129extern void GLAPIENTRY
130_mesa_MultiDrawArraysEXT( GLenum mode, GLint *first,
131                          GLsizei *count, GLsizei primcount );
132
133extern void GLAPIENTRY
134_mesa_MultiDrawElementsEXT( GLenum mode, const GLsizei *count, GLenum type,
135                            const GLvoid **indices, GLsizei primcount );
136
137
138extern void GLAPIENTRY
139_mesa_MultiModeDrawArraysIBM( const GLenum * mode, const GLint * first,
140			      const GLsizei * count,
141			      GLsizei primcount, GLint modestride );
142
143
144extern void GLAPIENTRY
145_mesa_MultiModeDrawElementsIBM( const GLenum * mode, const GLsizei * count,
146				GLenum type, const GLvoid * const * indices,
147				GLsizei primcount, GLint modestride );
148
149
150extern void
151_mesa_init_varray( GLcontext * ctx );
152
153#else
154
155/** No-op */
156#define _mesa_init_varray( c )  ((void)0)
157
158#endif
159
160#endif
161