Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4358 | Serge | 1 | |
2 | * Mesa 3-D graphics library |
||
3 | * |
||
4 | * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. |
||
5 | * |
||
6 | * Permission is hereby granted, free of charge, to any person obtaining a |
||
7 | * copy of this software and associated documentation files (the "Software"), |
||
8 | * to deal in the Software without restriction, including without limitation |
||
9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
||
10 | * and/or sell copies of the Software, and to permit persons to whom the |
||
11 | * Software is furnished to do so, subject to the following conditions: |
||
12 | * |
||
13 | * The above copyright notice and this permission notice shall be included |
||
14 | * in all copies or substantial portions of the Software. |
||
15 | * |
||
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
||
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
||
19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
||
20 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||
21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
||
22 | * OTHER DEALINGS IN THE SOFTWARE. |
||
23 | */ |
||
24 | |||
25 | |||
26 | |||
27 | #define API_VALIDATE_H |
||
28 | |||
29 | |||
30 | #include "glheader.h" |
||
31 | |||
32 | |||
33 | struct gl_context; |
||
34 | struct gl_transform_feedback_object; |
||
35 | |||
36 | |||
37 | |||
38 | _mesa_max_buffer_index(struct gl_context *ctx, GLuint count, GLenum type, |
||
39 | const void *indices, |
||
40 | struct gl_buffer_object *elementBuf); |
||
41 | |||
42 | |||
43 | |||
44 | _mesa_is_valid_prim_mode(struct gl_context *ctx, GLenum mode); |
||
45 | |||
46 | |||
47 | _mesa_valid_prim_mode(struct gl_context *ctx, GLenum mode, const char *name); |
||
48 | |||
49 | |||
50 | |||
51 | _mesa_validate_DrawArrays(struct gl_context *ctx, |
||
52 | GLenum mode, GLint start, GLsizei count); |
||
53 | |||
54 | |||
55 | _mesa_validate_DrawElements(struct gl_context *ctx, |
||
56 | GLenum mode, GLsizei count, GLenum type, |
||
57 | const GLvoid *indices, GLint basevertex); |
||
58 | |||
59 | |||
60 | _mesa_validate_MultiDrawElements(struct gl_context *ctx, |
||
61 | GLenum mode, const GLsizei *count, |
||
62 | GLenum type, const GLvoid * const *indices, |
||
63 | GLuint primcount, const GLint *basevertex); |
||
64 | |||
65 | |||
66 | _mesa_validate_DrawRangeElements(struct gl_context *ctx, GLenum mode, |
||
67 | GLuint start, GLuint end, |
||
68 | GLsizei count, GLenum type, |
||
69 | const GLvoid *indices, GLint basevertex); |
||
70 | |||
71 | |||
72 | |||
73 | _mesa_validate_DrawArraysInstanced(struct gl_context *ctx, GLenum mode, GLint first, |
||
74 | GLsizei count, GLsizei primcount); |
||
75 | |||
76 | |||
77 | _mesa_validate_DrawElementsInstanced(struct gl_context *ctx, |
||
78 | GLenum mode, GLsizei count, GLenum type, |
||
79 | const GLvoid *indices, GLsizei primcount, |
||
80 | GLint basevertex); |
||
81 | |||
82 | |||
83 | _mesa_validate_DrawTransformFeedback(struct gl_context *ctx, |
||
84 | GLenum mode, |
||
85 | struct gl_transform_feedback_object *obj, |
||
86 | GLuint stream, |
||
87 | GLsizei numInstances); |
||
88 | |||
89 | |||
90 | |||
91 |