]> icculus.org git repositories - taylor/freespace2.git/blob - include/colors.h
start of SDL2 port
[taylor/freespace2.git] / include / colors.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Graphics/Colors.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Functions to deal with colors & alphacolors
16  *
17  * $Log$
18  * Revision 1.3  2004/09/20 01:31:44  theoddone33
19  * GCC 3.4 fixes.
20  *
21  * Revision 1.2  2002/06/09 04:41:12  relnev
22  * added copyright header
23  *
24  * Revision 1.1.1.1  2002/05/03 03:28:12  root
25  * Initial import.
26  *
27  * 
28  * 5     1/14/99 12:48a Dave
29  * Todo list bug fixes. Made a pass at putting briefing icons back into
30  * FRED. Sort of works :(
31  * 
32  * 4     11/30/98 5:31p Dave
33  * Fixed up Fred support for software mode.
34  * 
35  * 3     11/30/98 1:07p Dave
36  * 16 bit conversion, first run.
37  * 
38  * 2     10/07/98 10:52a Dave
39  * Initial checkin.
40  * 
41  * 1     10/07/98 10:49a Dave
42  * 
43  * 2     2/07/98 7:50p John
44  * Added code so that we can use the old blending type of alphacolors if
45  * we want to.  Made the stars use them.
46  * 
47  * 1     6/17/97 12:01p John
48  *
49  * $NoKeywords: $
50  */
51
52 #ifndef _COLORS_H
53 #define _COLORS_H
54
55 struct alphacolor_old;
56
57 void grx_init_alphacolors();
58 void grx_init_color( color *clr, int r, int g, int b );
59 void grx_init_alphacolor( color *clr, int r, int g, int b, int alpha, int type=AC_TYPE_HUD );
60 void grx_set_color( int r, int g, int b );
61 void grx_set_color_fast( color *clr );
62 void grx_get_color( int *r, int *g, int *b );
63
64 void calc_alphacolor_old(alphacolor_old *ac);
65
66 #endif
67