1 #ifndef _OGL_FADERS_
2 #define _OGL_FADERS_
3 /*
4 	Copyright (C) 1991-2001 and beyond by Bungie Studios, Inc.
5 	and the "Aleph One" developers.
6 
7 	This program is free software; you can redistribute it and/or modify
8 	it under the terms of the GNU General Public License as published by
9 	the Free Software Foundation; either version 3 of the License, or
10 	(at your option) any later version.
11 
12 	This program is distributed in the hope that it will be useful,
13 	but WITHOUT ANY WARRANTY; without even the implied warranty of
14 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 	GNU General Public License for more details.
16 
17 	This license is contained in the file "COPYING",
18 	which is included with this source code; it is available online at
19 	http://www.gnu.org/licenses/gpl.html
20 
21 	OpenGL Renderer,
22 	by Loren Petrich,
23 	May 30, 2000
24 
25 	This contains code for doing fader stuff.
26 */
27 
28 #include "cstypes.h"
29 
30 
31 // Indicates whether OpenGL-rendering faders will be used
32 bool OGL_FaderActive();
33 
34 // Which kinds of faders in the fader queue?
35 enum
36 {
37 	FaderQueue_Liquid,
38 	FaderQueue_Other,
39 	NUMBER_OF_FADER_QUEUE_ENTRIES
40 };
41 
42 // Fader data
43 struct OGL_Fader
44 {
45 	// Which type of fade to do
46 	short Type;
47 	// The three color channels and a transparency channel
48 	float Color[4];
49 
OGL_FaderOGL_Fader50 	OGL_Fader(): Type(NONE) {}
51 };
52 
53 // Fader=queue accessor
54 OGL_Fader *GetOGL_FaderQueueEntry(int Index);
55 
56 // Fader renderer; returns whether or not OpenGL faders were active.
57 bool OGL_DoFades(float Left, float Top, float Right, float Bottom);
58 
59 #endif
60