Initial work for bounds checking of vertex arrays and vertex buffer objects.
[mesa.git] / src / mesa / tnl / t_imm_exec.h
1 /*
2 * Mesa 3-D graphics library
3 * Version: 5.1
4 *
5 * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25
26 #ifndef _T_IMM_EXEC_H
27 #define _T_IMM_EXEC_H
28
29 #include "mtypes.h"
30 #include "t_context.h"
31
32
33 /* Hook for ctx->Driver.FlushVertices:
34 */
35 extern void _tnl_flush_vertices( GLcontext *ctx, GLuint flush_flags );
36
37 /* Called from imm_api.c and _tnl_flush_vertices:
38 */
39 extern void _tnl_flush_immediate( GLcontext *ctx, struct immediate *IM );
40
41 /* Called from imm_dlist.c and _tnl_flush_immediate:
42 */
43 extern void _tnl_run_cassette( GLcontext *ctx, struct immediate *IM );
44 extern void _tnl_copy_to_current( GLcontext *ctx, struct immediate *IM,
45 GLuint flag, GLuint row );
46
47 /* Initialize some stuff:
48 */
49 extern void _tnl_imm_init( GLcontext *ctx );
50
51 extern void _tnl_imm_destroy( GLcontext *ctx );
52
53 extern void _tnl_reset_exec_input( GLcontext *ctx,
54 GLuint start,
55 GLuint beginstate,
56 GLuint savedbeginstate );
57
58 extern void _tnl_reset_compile_input( GLcontext *ctx,
59 GLuint start,
60 GLuint beginstate,
61 GLuint savedbeginstate );
62
63 extern void _tnl_compute_orflag( struct immediate *IM, GLuint start );
64 extern void _tnl_execute_cassette( GLcontext *ctx, struct immediate *IM );
65
66
67
68 #endif