88cc3108dff35bef15e5ad602a878b48265a89c4
[mesa.git] / src / mesa / drivers / dri / mga / mgavb.h
1 /* $XFree86: xc/lib/GL/mesa/src/drv/mga/mgavb.h,v 1.8 2002/10/30 12:51:36 alanh Exp $ */
2 /*
3 * Copyright 2000-2001 VA Linux Systems, Inc.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * on the rights to use, copy, modify, merge, publish, distribute, sub
10 * license, and/or sell copies of the Software, and to permit persons to whom
11 * the Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice (including the next
14 * paragraph) shall be included in all copies or substantial portions of the
15 * Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
20 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 * OTHER DEALINGS IN THE SOFTWARE.
24 *
25 * Authors:
26 * Keith Whitwell <keith@tungstengraphics.com>
27 */
28
29 #ifndef MGAVB_INC
30 #define MGAVB_INC
31
32 #include "mtypes.h"
33 #include "mgacontext.h"
34 #include "swrast/swrast.h"
35
36 #define _MGA_NEW_RASTERSETUP (_NEW_TEXTURE | \
37 _DD_NEW_SEPARATE_SPECULAR | \
38 _DD_NEW_TRI_UNFILLED | \
39 _DD_NEW_TRI_LIGHT_TWOSIDE | \
40 _NEW_FOG)
41
42
43 extern void mgaChooseVertexState( GLcontext *ctx );
44 extern void mgaCheckTexSizes( GLcontext *ctx );
45 extern void mgaBuildVertices( GLcontext *ctx,
46 GLuint start,
47 GLuint count,
48 GLuint newinputs );
49
50 extern void mgaPrintSetupFlags(char *msg, GLuint flags );
51
52 extern void mgaInitVB( GLcontext *ctx );
53 extern void mgaFreeVB( GLcontext *ctx );
54
55 extern void mga_emit_contiguous_verts( GLcontext *ctx,
56 GLuint start,
57 GLuint count );
58
59 extern void mga_translate_vertex(GLcontext *ctx,
60 const mgaVertex *src,
61 SWvertex *dst);
62
63 extern void mga_print_vertex( GLcontext *ctx, const mgaVertex *v );
64
65 #endif