Merge branch 'mesa_7_5_branch'
[mesa.git] / src / mesa / main / arrayobj.h
1 /*
2 * Mesa 3-D graphics library
3 * Version: 6.5
4 *
5 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
6 * (C) Copyright IBM Corporation 2006
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 OR IBM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
23 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * SOFTWARE.
25 */
26
27 #ifndef ARRAYOBJ_H
28 #define ARRAYOBJ_H
29
30 #include "context.h"
31
32 /**
33 * \file arrayobj.h
34 * Functions for the GL_APPLE_vertex_array_object extension.
35 *
36 * \author Ian Romanick <idr@us.ibm.com>
37 * \author Brian Paul
38 */
39
40 /*
41 * Internal functions
42 */
43
44 extern struct gl_array_object *
45 _mesa_new_array_object( GLcontext *ctx, GLuint name );
46
47 extern void
48 _mesa_delete_array_object( GLcontext *ctx, struct gl_array_object *obj );
49
50 extern void
51 _mesa_reference_array_object(GLcontext *ctx,
52 struct gl_array_object **ptr,
53 struct gl_array_object *arrayObj);
54
55 extern void
56 _mesa_initialize_array_object( GLcontext *ctx,
57 struct gl_array_object *obj, GLuint name );
58
59
60 /*
61 * API functions
62 */
63
64 void GLAPIENTRY _mesa_BindVertexArrayAPPLE( GLuint id );
65
66 void GLAPIENTRY _mesa_DeleteVertexArraysAPPLE(GLsizei n, const GLuint *ids);
67
68 void GLAPIENTRY _mesa_GenVertexArraysAPPLE(GLsizei n, GLuint *buffer);
69
70 GLboolean GLAPIENTRY _mesa_IsVertexArrayAPPLE( GLuint id );
71
72 #endif /* ARRAYOBJ_H */