1 /* $Id: acache.h,v 1.3 2002/04/21 18:49:19 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 * Keith Whitwell <keithw@valinux.com>
37 _ac_CreateContext( GLcontext
*ctx
);
40 _ac_DestroyContext( GLcontext
*ctx
);
43 _ac_InvalidateState( GLcontext
*ctx
, GLuint new_state
);
45 extern struct gl_client_array
*
46 _ac_import_vertex( GLcontext
*ctx
,
50 GLboolean reqwritable
,
51 GLboolean
*writable
);
53 extern struct gl_client_array
*
54 _ac_import_normal( GLcontext
*ctx
,
57 GLboolean reqwritable
,
58 GLboolean
*writable
);
60 extern struct gl_client_array
*
61 _ac_import_color( GLcontext
*ctx
,
65 GLboolean reqwritable
,
66 GLboolean
*writable
);
68 extern struct gl_client_array
*
69 _ac_import_index( GLcontext
*ctx
,
72 GLboolean reqwritable
,
73 GLboolean
*writable
);
75 extern struct gl_client_array
*
76 _ac_import_secondarycolor( GLcontext
*ctx
,
80 GLboolean reqwritable
,
81 GLboolean
*writable
);
83 extern struct gl_client_array
*
84 _ac_import_fogcoord( GLcontext
*ctx
,
87 GLboolean reqwritable
,
88 GLboolean
*writable
);
90 extern struct gl_client_array
*
91 _ac_import_edgeflag( GLcontext
*ctx
,
94 GLboolean reqwritable
,
95 GLboolean
*writable
);
97 extern struct gl_client_array
*
98 _ac_import_texcoord( GLcontext
*ctx
,
103 GLboolean reqwritable
,
104 GLboolean
*writable
);
106 extern struct gl_client_array
*
107 _ac_import_attrib( GLcontext
*ctx
,
112 GLboolean reqwritable
,
113 GLboolean
*writable
);
116 /* Clients must call this function to validate state and set bounds
117 * before importing any data:
120 _ac_import_range( GLcontext
*ctx
, GLuint start
, GLuint count
);
123 /* Additional convenience function:
126 _ac_import_elements( GLcontext
*ctx
,
130 CONST
void *indices
);