Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1901 | serge | 1 | /* |
2 | * Mesa 3-D graphics library |
||
3 | * Version: 7.6 |
||
4 | * |
||
5 | * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. |
||
6 | * Copyright (C) 2009 VMware, Inc. All Rights Reserved. |
||
7 | * |
||
8 | * Permission is hereby granted, free of charge, to any person obtaining a |
||
9 | * copy of this software and associated documentation files (the "Software"), |
||
10 | * to deal in the Software without restriction, including without limitation |
||
11 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
||
12 | * and/or sell copies of the Software, and to permit persons to whom the |
||
13 | * Software is furnished to do so, subject to the following conditions: |
||
14 | * |
||
15 | * The above copyright notice and this permission notice shall be included |
||
16 | * in all copies or substantial portions of the Software. |
||
17 | * |
||
18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
||
19 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||
20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
||
21 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
||
22 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
||
23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
24 | */ |
||
25 | |||
26 | |||
27 | #ifndef VARRAY_H |
||
28 | #define VARRAY_H |
||
29 | |||
30 | |||
31 | #include "glheader.h" |
||
32 | #include "mfeatures.h" |
||
33 | |||
34 | struct gl_client_array; |
||
35 | struct gl_context; |
||
36 | |||
37 | #if _HAVE_FULL_GL |
||
38 | |||
39 | extern void GLAPIENTRY |
||
40 | _mesa_VertexPointer(GLint size, GLenum type, GLsizei stride, |
||
41 | const GLvoid *ptr); |
||
42 | |||
43 | extern void GLAPIENTRY |
||
44 | _mesa_UnlockArraysEXT( void ); |
||
45 | |||
46 | extern void GLAPIENTRY |
||
47 | _mesa_LockArraysEXT(GLint first, GLsizei count); |
||
48 | |||
49 | |||
50 | extern void GLAPIENTRY |
||
51 | _mesa_NormalPointer(GLenum type, GLsizei stride, const GLvoid *ptr); |
||
52 | |||
53 | |||
54 | extern void GLAPIENTRY |
||
55 | _mesa_ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr); |
||
56 | |||
57 | |||
58 | extern void GLAPIENTRY |
||
59 | _mesa_IndexPointer(GLenum type, GLsizei stride, const GLvoid *ptr); |
||
60 | |||
61 | |||
62 | extern void GLAPIENTRY |
||
63 | _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride, |
||
64 | const GLvoid *ptr); |
||
65 | |||
66 | |||
67 | extern void GLAPIENTRY |
||
68 | _mesa_EdgeFlagPointer(GLsizei stride, const GLvoid *ptr); |
||
69 | |||
70 | |||
71 | extern void GLAPIENTRY |
||
72 | _mesa_VertexPointerEXT(GLint size, GLenum type, GLsizei stride, |
||
73 | GLsizei count, const GLvoid *ptr); |
||
74 | |||
75 | |||
76 | extern void GLAPIENTRY |
||
77 | _mesa_NormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, |
||
78 | const GLvoid *ptr); |
||
79 | |||
80 | |||
81 | extern void GLAPIENTRY |
||
82 | _mesa_ColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, |
||
83 | const GLvoid *ptr); |
||
84 | |||
85 | |||
86 | extern void GLAPIENTRY |
||
87 | _mesa_IndexPointerEXT(GLenum type, GLsizei stride, GLsizei count, |
||
88 | const GLvoid *ptr); |
||
89 | |||
90 | |||
91 | extern void GLAPIENTRY |
||
92 | _mesa_TexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, |
||
93 | GLsizei count, const GLvoid *ptr); |
||
94 | |||
95 | |||
96 | extern void GLAPIENTRY |
||
97 | _mesa_EdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean *ptr); |
||
98 | |||
99 | |||
100 | extern void GLAPIENTRY |
||
101 | _mesa_FogCoordPointerEXT(GLenum type, GLsizei stride, const GLvoid *ptr); |
||
102 | |||
103 | |||
104 | extern void GLAPIENTRY |
||
105 | _mesa_SecondaryColorPointerEXT(GLint size, GLenum type, |
||
106 | GLsizei stride, const GLvoid *ptr); |
||
107 | |||
108 | |||
109 | extern void GLAPIENTRY |
||
110 | _mesa_PointSizePointer(GLenum type, GLsizei stride, const GLvoid *ptr); |
||
111 | |||
112 | |||
113 | extern void GLAPIENTRY |
||
114 | _mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type, |
||
115 | GLsizei stride, const GLvoid *pointer); |
||
116 | |||
117 | |||
118 | extern void GLAPIENTRY |
||
119 | _mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type, |
||
120 | GLboolean normalized, GLsizei stride, |
||
121 | const GLvoid *pointer); |
||
122 | |||
123 | void GLAPIENTRY |
||
124 | _mesa_VertexAttribIPointer(GLuint index, GLint size, GLenum type, |
||
125 | GLsizei stride, const GLvoid *ptr); |
||
126 | |||
127 | |||
128 | extern void GLAPIENTRY |
||
129 | _mesa_EnableVertexAttribArrayARB(GLuint index); |
||
130 | |||
131 | |||
132 | extern void GLAPIENTRY |
||
133 | _mesa_DisableVertexAttribArrayARB(GLuint index); |
||
134 | |||
135 | |||
136 | extern void GLAPIENTRY |
||
137 | _mesa_GetVertexAttribdvARB(GLuint index, GLenum pname, GLdouble *params); |
||
138 | |||
139 | |||
140 | extern void GLAPIENTRY |
||
141 | _mesa_GetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat *params); |
||
142 | |||
143 | |||
144 | extern void GLAPIENTRY |
||
145 | _mesa_GetVertexAttribivARB(GLuint index, GLenum pname, GLint *params); |
||
146 | |||
147 | |||
148 | extern void GLAPIENTRY |
||
149 | _mesa_GetVertexAttribIiv(GLuint index, GLenum pname, GLint *params); |
||
150 | |||
151 | |||
152 | extern void GLAPIENTRY |
||
153 | _mesa_GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params); |
||
154 | |||
155 | |||
156 | extern void GLAPIENTRY |
||
157 | _mesa_GetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid **pointer); |
||
158 | |||
159 | |||
160 | extern void GLAPIENTRY |
||
161 | _mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer); |
||
162 | |||
163 | |||
164 | extern void GLAPIENTRY |
||
165 | _mesa_MultiDrawArraysEXT( GLenum mode, const GLint *first, |
||
166 | const GLsizei *count, GLsizei primcount ); |
||
167 | |||
168 | extern void GLAPIENTRY |
||
169 | _mesa_MultiDrawElementsEXT( GLenum mode, const GLsizei *count, GLenum type, |
||
170 | const GLvoid **indices, GLsizei primcount ); |
||
171 | |||
172 | extern void GLAPIENTRY |
||
173 | _mesa_MultiDrawElementsBaseVertex( GLenum mode, |
||
174 | const GLsizei *count, GLenum type, |
||
175 | const GLvoid **indices, GLsizei primcount, |
||
176 | const GLint *basevertex); |
||
177 | |||
178 | extern void GLAPIENTRY |
||
179 | _mesa_MultiModeDrawArraysIBM( const GLenum * mode, const GLint * first, |
||
180 | const GLsizei * count, |
||
181 | GLsizei primcount, GLint modestride ); |
||
182 | |||
183 | |||
184 | extern void GLAPIENTRY |
||
185 | _mesa_MultiModeDrawElementsIBM( const GLenum * mode, const GLsizei * count, |
||
186 | GLenum type, const GLvoid * const * indices, |
||
187 | GLsizei primcount, GLint modestride ); |
||
188 | |||
189 | extern void GLAPIENTRY |
||
190 | _mesa_LockArraysEXT(GLint first, GLsizei count); |
||
191 | |||
192 | extern void GLAPIENTRY |
||
193 | _mesa_UnlockArraysEXT( void ); |
||
194 | |||
195 | |||
196 | extern void GLAPIENTRY |
||
197 | _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count); |
||
198 | |||
199 | extern void GLAPIENTRY |
||
200 | _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type, |
||
201 | const GLvoid *indices); |
||
202 | |||
203 | extern void GLAPIENTRY |
||
204 | _mesa_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, |
||
205 | GLenum type, const GLvoid *indices); |
||
206 | |||
207 | extern void GLAPIENTRY |
||
208 | _mesa_DrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, |
||
209 | const GLvoid *indices, GLint basevertex); |
||
210 | |||
211 | extern void GLAPIENTRY |
||
212 | _mesa_DrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, |
||
213 | GLsizei count, GLenum type, |
||
214 | const GLvoid *indices, |
||
215 | GLint basevertex); |
||
216 | |||
217 | extern void GLAPIENTRY |
||
218 | _mesa_PrimitiveRestartIndex(GLuint index); |
||
219 | |||
220 | |||
221 | extern void |
||
222 | _mesa_copy_client_array(struct gl_context *ctx, |
||
223 | struct gl_client_array *dst, |
||
224 | struct gl_client_array *src); |
||
225 | |||
226 | |||
227 | extern void |
||
228 | _mesa_print_arrays(struct gl_context *ctx); |
||
229 | |||
230 | extern void |
||
231 | _mesa_init_varray( struct gl_context * ctx ); |
||
232 | |||
233 | extern void |
||
234 | _mesa_free_varray_data(struct gl_context *ctx); |
||
235 | |||
236 | #else |
||
237 | |||
238 | /** No-op */ |
||
239 | #define _mesa_init_varray( c ) ((void)0) |
||
240 | #define _mesa_free_varray_data( c ) ((void)0) |
||
241 | |||
242 | #endif |
||
243 | |||
244 | #endif |