arrayobj.h revision de1cfc5e8a8e9d0b0b397671575ae448a554a002
1ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick/*
2ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * Mesa 3-D graphics library
3de1cfc5e8a8e9d0b0b397671575ae448a554a002Brian Paul * Version:  7.6
4ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick *
5ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
6ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * (C) Copyright IBM Corporation 2006
7de1cfc5e8a8e9d0b0b397671575ae448a554a002Brian Paul * Copyright (C) 2009  VMware, Inc.  All Rights Reserved.
8ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick *
9ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * Permission is hereby granted, free of charge, to any person obtaining a
10ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * copy of this software and associated documentation files (the "Software"),
11ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * to deal in the Software without restriction, including without limitation
12ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * and/or sell copies of the Software, and to permit persons to whom the
14ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * Software is furnished to do so, subject to the following conditions:
15ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick *
16ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * The above copyright notice and this permission notice shall be included
17ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * in all copies or substantial portions of the Software.
18ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick *
19ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
22ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * BRIAN PAUL OR IBM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
24ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * SOFTWARE.
26ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick */
27ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
28ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick#ifndef ARRAYOBJ_H
29ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick#define ARRAYOBJ_H
30ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
31ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick#include "context.h"
32ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
33ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick/**
34ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * \file arrayobj.h
35ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * Functions for the GL_APPLE_vertex_array_object extension.
36ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick *
37ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * \author Ian Romanick <idr@us.ibm.com>
38ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * \author Brian Paul
39ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick */
40ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
41ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick/*
42ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * Internal functions
43ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick */
44ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
451030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paulextern struct gl_array_object *
461030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paul_mesa_new_array_object( GLcontext *ctx, GLuint name );
47ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
481030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paulextern void
491030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paul_mesa_delete_array_object( GLcontext *ctx, struct gl_array_object *obj );
50ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
511030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paulextern void
521030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paul_mesa_reference_array_object(GLcontext *ctx,
531030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paul                             struct gl_array_object **ptr,
541030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paul                             struct gl_array_object *arrayObj);
55ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
561030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paulextern void
571030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paul_mesa_initialize_array_object( GLcontext *ctx,
581030bf0ded2a88a5e27f7a4d393c11cfde3d3c5aBrian Paul                               struct gl_array_object *obj, GLuint name );
59ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
60ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
61de1cfc5e8a8e9d0b0b397671575ae448a554a002Brian Paulextern void
62de1cfc5e8a8e9d0b0b397671575ae448a554a002Brian Paul_mesa_update_array_object_max_element(GLcontext *ctx,
63de1cfc5e8a8e9d0b0b397671575ae448a554a002Brian Paul                                      struct gl_array_object *arrayObj);
64de1cfc5e8a8e9d0b0b397671575ae448a554a002Brian Paul
65ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
66ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick/*
67ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick * API functions
68ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick */
69ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
70ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanickvoid GLAPIENTRY _mesa_BindVertexArrayAPPLE( GLuint id );
71ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
72ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanickvoid GLAPIENTRY _mesa_DeleteVertexArraysAPPLE(GLsizei n, const GLuint *ids);
73ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
74ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanickvoid GLAPIENTRY _mesa_GenVertexArraysAPPLE(GLsizei n, GLuint *buffer);
75ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
76ee34e6ef716bb630440299ac1efbc2055ef09ffdIan RomanickGLboolean GLAPIENTRY _mesa_IsVertexArrayAPPLE( GLuint id );
77ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick
78ee34e6ef716bb630440299ac1efbc2055ef09ffdIan Romanick#endif /* ARRAYOBJ_H */
79