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.
17 ** $Header: /devel/sst1/glide/src/glideutl.h 6 8/14/97 5:32p Pgj $
18 ** $Log: /devel/sst1/glide/src/glideutl.h $
21 * remove dead code per GMT
27 * Removed guFbWriteRegion added guEncodeRLE16
30 * Embedded fn protos in ifndef FX_GLIDE_NO_FUNC_PROTO
33 /* Glide Utility routines */
35 #ifndef __GLIDEUTL_H__
36 #define __GLIDEUTL_H__
42 #ifndef FX_GLIDE_NO_FUNC_PROTO
44 ** rendering functions
47 guAADrawTriangleWithClip( const GrVertex *a, const GrVertex
48 *b, const GrVertex *c);
51 guDrawTriangleWithClip(
58 guDrawPolygonVertexListWithClip( int nverts, const GrVertex vlist[] );
61 ** hi-level rendering utility functions
64 guAlphaSource( GrAlphaSource_t mode );
67 guColorCombineFunction( GrColorCombineFnc_t fnc );
70 guEncodeRLE16( void *dst,
75 FX_ENTRY FxU16 * FX_CALL
76 guTexCreateColorMipMap( void );
81 FX_ENTRY float FX_CALL
82 guFogTableIndexToW( int i );
85 guFogGenerateExp( GrFog_t fogtable[GR_FOG_TABLE_SIZE], float density );
88 guFogGenerateExp2( GrFog_t fogtable[GR_FOG_TABLE_SIZE], float density );
92 GrFog_t fogtable[GR_FOG_TABLE_SIZE],
93 float nearZ, float farZ );
98 FX_ENTRY FxU32 FX_CALL
99 guEndianSwapWords( FxU32 value );
101 FX_ENTRY FxU16 FX_CALL
102 guEndianSwapBytes( FxU16 value );
105 ** hi-level texture manipulation tools.
107 FX_ENTRY FxBool FX_CALL
108 gu3dfGetInfo( const char *filename, Gu3dfInfo *info );
110 FX_ENTRY FxBool FX_CALL
111 gu3dfLoad( const char *filename, Gu3dfInfo *data );
113 #endif /* FX_GLIDE_NO_FUNC_PROTO */
119 #endif /* __GLIDEUTL_H__ */