2 * Copyright 2001 by Alan Hourihane.
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of Alan Hourihane not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. Alan Hourihane makes no representations
11 * about the suitability of this software for any purpose. It is provided
12 * "as is" without express or implied warranty.
14 * ALAN HOURIHANE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL ALAN HOURIHANE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
22 * Authors: Alan Hourihane, <alanh@tungstengraphics.com>
23 * Keith Whitwell, <keith@tungstengraphics.com>
25 * 3DLabs Gamma driver.
32 #include "swrast/swrast.h"
34 #define _GAMMA_NEW_VERTEX (_NEW_TEXTURE | \
35 _DD_NEW_TRI_UNFILLED | \
36 _DD_NEW_TRI_LIGHT_TWOSIDE)
39 extern void gammaChooseVertexState( GLcontext
*ctx
);
40 extern void gammaCheckTexSizes( GLcontext
*ctx
);
41 extern void gammaBuildVertices( GLcontext
*ctx
,
47 extern void gamma_import_float_colors( GLcontext
*ctx
);
48 extern void gamma_import_float_spec_colors( GLcontext
*ctx
);
50 extern void gamma_translate_vertex( GLcontext
*ctx
,
51 const gammaVertex
*src
,
54 extern void gammaInitVB( GLcontext
*ctx
);
55 extern void gammaFreeVB( GLcontext
*ctx
);
57 extern void gamma_print_vertex( GLcontext
*ctx
, const gammaVertex
*v
);
58 extern void gammaPrintSetupFlags(char *msg
, GLuint flags
);