1 /* $XFree86: xc/lib/GL/mesa/src/drv/mga/mgavb.h,v 1.8 2002/10/30 12:51:36 alanh Exp $ */
3 * Copyright 2000-2001 VA Linux Systems, Inc.
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:
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
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.
26 * Keith Whitwell <keith@tungstengraphics.com>
33 #include "mgacontext.h"
34 #include "swrast/swrast.h"
36 #define _MGA_NEW_RASTERSETUP (_NEW_TEXTURE | \
37 _DD_NEW_SEPARATE_SPECULAR | \
38 _DD_NEW_TRI_UNFILLED | \
39 _DD_NEW_TRI_LIGHT_TWOSIDE | \
43 extern void mgaChooseVertexState( GLcontext
*ctx
);
44 extern void mgaCheckTexSizes( GLcontext
*ctx
);
45 extern void mgaBuildVertices( GLcontext
*ctx
,
50 extern void mgaPrintSetupFlags(char *msg
, GLuint flags
);
52 extern void mgaInitVB( GLcontext
*ctx
);
53 extern void mgaFreeVB( GLcontext
*ctx
);
55 extern void *mga_emit_contiguous_verts( GLcontext
*ctx
,
60 extern void mga_translate_vertex(GLcontext
*ctx
,
64 extern void mga_print_vertex( GLcontext
*ctx
, const mgaVertex
*v
);