arrayobj.h revision 7117f1b4
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 44struct gl_array_object * _mesa_new_array_object( GLcontext *ctx, 45 GLuint name ); 46 47void _mesa_delete_array_object( GLcontext *ctx, struct gl_array_object *obj ); 48 49void _mesa_initialize_array_object( GLcontext *ctx, 50 struct gl_array_object *obj, GLuint name ); 51 52void _mesa_save_array_object( GLcontext *ctx, struct gl_array_object *obj ); 53 54void _mesa_remove_array_object( GLcontext *ctx, struct gl_array_object *obj ); 55 56 57 58/* 59 * API functions 60 */ 61 62void GLAPIENTRY _mesa_BindVertexArrayAPPLE( GLuint id ); 63 64void GLAPIENTRY _mesa_DeleteVertexArraysAPPLE(GLsizei n, const GLuint *ids); 65 66void GLAPIENTRY _mesa_GenVertexArraysAPPLE(GLsizei n, GLuint *buffer); 67 68GLboolean GLAPIENTRY _mesa_IsVertexArrayAPPLE( GLuint id ); 69 70#endif /* ARRAYOBJ_H */ 71