2 ** Copyright (c) 1995, 3Dfx Interactive, Inc.
3 ** All Rights Reserved.
5 ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of 3Dfx Interactive, Inc.;
6 ** the contents of this file may not be disclosed to third parties, copied or
7 ** duplicated in any form, in whole or in part, without the prior written
8 ** permission of 3Dfx Interactive, Inc.
10 ** RESTRICTED RIGHTS LEGEND:
11 ** Use, duplication or disclosure by the Government is subject to restrictions
12 ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
13 ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
14 ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
15 ** rights reserved under the Copyright Laws of the United States.
19 ** Revision 1.1 2002/05/03 03:28:12 root
23 * 2 10/07/98 10:52a Dave
26 * 1 10/07/98 10:48a Dave
28 * 2 2/27/98 3:25p Frank
29 * (John/Frank K.) updated to 2.43 headers
31 * 1 10/16/97 11:51a Klier
34 * remove dead code per GMT
40 * Removed guFbWriteRegion added guEncodeRLE16
43 * Embedded fn protos in ifndef FX_GLIDE_NO_FUNC_PROTO
46 /* Glide Utility routines */
48 #ifndef __GLIDEUTL_H__
49 #define __GLIDEUTL_H__
55 #ifndef FX_GLIDE_NO_FUNC_PROTO
57 ** rendering functions
60 guAADrawTriangleWithClip( const GrVertex *a, const GrVertex
61 *b, const GrVertex *c);
64 guDrawTriangleWithClip(
71 guDrawPolygonVertexListWithClip( int nverts, const GrVertex vlist[] );
74 ** hi-level rendering utility functions
77 guAlphaSource( GrAlphaSource_t mode );
80 guColorCombineFunction( GrColorCombineFnc_t fnc );
83 guEncodeRLE16( void *dst,
88 FX_ENTRY FxU16 * FX_CALL
89 guTexCreateColorMipMap( void );
94 FX_ENTRY float FX_CALL
95 guFogTableIndexToW( int i );
98 guFogGenerateExp( GrFog_t fogtable[GR_FOG_TABLE_SIZE], float density );
100 FX_ENTRY void FX_CALL
101 guFogGenerateExp2( GrFog_t fogtable[GR_FOG_TABLE_SIZE], float density );
103 FX_ENTRY void FX_CALL
105 GrFog_t fogtable[GR_FOG_TABLE_SIZE],
106 float nearZ, float farZ );
111 FX_ENTRY FxU32 FX_CALL
112 guEndianSwapWords( FxU32 value );
114 FX_ENTRY FxU16 FX_CALL
115 guEndianSwapBytes( FxU16 value );
118 ** hi-level texture manipulation tools.
120 FX_ENTRY FxBool FX_CALL
121 gu3dfGetInfo( const char *filename, Gu3dfInfo *info );
123 FX_ENTRY FxBool FX_CALL
124 gu3dfLoad( const char *filename, Gu3dfInfo *data );
126 #endif /* FX_GLIDE_NO_FUNC_PROTO */
132 #endif /* __GLIDEUTL_H__ */