[PROPSYS]
[reactos.git] / reactos / dll / opengl / mesa / main / arrayobj.h
1 /*
2 * Mesa 3-D graphics library
3 * Version: 7.6
4 *
5 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
6 * (C) Copyright IBM Corporation 2006
7 * Copyright (C) 2009 VMware, Inc. All Rights Reserved.
8 *
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:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
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 OR IBM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
24 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 * SOFTWARE.
26 */
27
28 #ifndef ARRAYOBJ_H
29 #define ARRAYOBJ_H
30
31 #include "glheader.h"
32
33 struct gl_context;
34
35 /**
36 * \file arrayobj.h
37 * Functions for the GL_APPLE_vertex_array_object extension.
38 *
39 * \author Ian Romanick <idr@us.ibm.com>
40 * \author Brian Paul
41 */
42
43 /*
44 * Internal functions
45 */
46
47 extern struct gl_array_object *
48 _mesa_new_array_object( struct gl_context *ctx, GLuint name );
49
50 extern void
51 _mesa_delete_array_object( struct gl_context *ctx, struct gl_array_object *obj );
52
53 extern void
54 _mesa_reference_array_object(struct gl_context *ctx,
55 struct gl_array_object **ptr,
56 struct gl_array_object *arrayObj);
57
58 extern void
59 _mesa_initialize_array_object( struct gl_context *ctx,
60 struct gl_array_object *obj, GLuint name );
61
62
63 extern void
64 _mesa_update_array_object_max_element(struct gl_context *ctx,
65 struct gl_array_object *arrayObj);
66
67
68 /*
69 * API functions
70 */
71
72
73 void GLAPIENTRY _mesa_BindVertexArray( GLuint id );
74
75 void GLAPIENTRY _mesa_BindVertexArrayAPPLE( GLuint id );
76
77 void GLAPIENTRY _mesa_DeleteVertexArraysAPPLE(GLsizei n, const GLuint *ids);
78
79 void GLAPIENTRY _mesa_GenVertexArrays(GLsizei n, GLuint *arrays);
80
81 void GLAPIENTRY _mesa_GenVertexArraysAPPLE(GLsizei n, GLuint *buffer);
82
83 GLboolean GLAPIENTRY _mesa_IsVertexArrayAPPLE( GLuint id );
84
85 #endif /* ARRAYOBJ_H */