2 * Mesa 3-D graphics library
5 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
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:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
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.
25 * Keith Whitwell <keith@tungstengraphics.com>
31 #include "main/mtypes.h"
35 /* These are the public-access functions exported from tnl. (A few
36 * more are currently hooked into dispatch directly by the module
40 _tnl_CreateContext( GLcontext
*ctx
);
43 _tnl_DestroyContext( GLcontext
*ctx
);
46 _tnl_InvalidateState( GLcontext
*ctx
, GLuint new_state
);
48 /* Functions to revive the tnl module after being unhooked from
49 * dispatch and/or driver callbacks.
53 _tnl_wakeup( GLcontext
*ctx
);
55 /* Driver configuration options:
58 _tnl_need_projected_coords( GLcontext
*ctx
, GLboolean flag
);
61 /* Control whether T&L does per-vertex fog
64 _tnl_allow_vertex_fog( GLcontext
*ctx
, GLboolean value
);
67 _tnl_allow_pixel_fog( GLcontext
*ctx
, GLboolean value
);
70 _tnl_program_string(GLcontext
*ctx
, GLenum target
, struct gl_program
*program
);
73 struct _mesa_index_buffer
;
76 _tnl_draw_prims( GLcontext
*ctx
,
77 const struct gl_client_array
*arrays
[],
78 const struct _mesa_prim
*prim
,
80 const struct _mesa_index_buffer
*ib
,
85 _tnl_vbo_draw_prims( GLcontext
*ctx
,
86 const struct gl_client_array
*arrays
[],
87 const struct _mesa_prim
*prim
,
89 const struct _mesa_index_buffer
*ib
,
90 GLboolean index_bounds_valid
,
95 _mesa_load_tracked_matrices(GLcontext
*ctx
);
98 _tnl_RasterPos(GLcontext
*ctx
, const GLfloat vObj
[4]);