]> icculus.org git repositories - taylor/freespace2.git/blob - src/globalincs/alphacolors.cpp
get rid of some platform specific stuff
[taylor/freespace2.git] / src / globalincs / alphacolors.cpp
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 #include "2d.h"
10 #include "alphacolors.h"
11
12 // -----------------------------------------------------------------------------------
13 // ALPHA DEFINES/VARS
14 //
15
16 color Color_black, Color_grey, Color_blue, Color_bright_blue, Color_violet_gray;
17 color Color_green, Color_bright_green, Color_bright_white, Color_white;
18 color Color_red, Color_bright_red, Color_yellow, Color_bright_yellow, Color_dim_red;
19 color Color_ui_light_green, Color_ui_green;
20 color Color_ui_light_pink, Color_ui_pink;
21
22 // netplayer colors
23 color *Color_netplayer[12] = {
24         &Color_white,
25         &Color_bright_white,
26         &Color_bright_blue,
27         &Color_red,
28         &Color_bright_red,
29         &Color_blue,
30         &Color_bright_green,
31         &Color_bright_blue,
32         &Color_yellow,
33         &Color_bright_yellow,
34         &Color_ui_green,
35         &Color_ui_pink
36 };
37
38
39 // -----------------------------------------------------------------------------------
40 // ALPHA FUNCTIONS
41 //
42
43 // initialize all alpha colors (call at startup)
44 void alpha_colors_init()
45 {
46         // See the variable declarations above for color usage
47         gr_init_alphacolor( &Color_blue, 93, 93, 128, 255, AC_TYPE_HUD );
48         gr_init_alphacolor( &Color_bright_blue, 185, 185, 255, 255, AC_TYPE_HUD );
49
50         gr_init_alphacolor( &Color_green, 0, 120, 0, 255, AC_TYPE_HUD );
51         gr_init_alphacolor( &Color_bright_green, 50, 190, 50, 255, AC_TYPE_HUD );
52
53         gr_init_alphacolor( &Color_black, 0, 0, 0, 255, AC_TYPE_HUD );
54         gr_init_alphacolor( &Color_grey, 50, 50, 50, 255, AC_TYPE_HUD );
55 #ifdef MAKE_FS1
56         gr_init_alphacolor( &Color_white, 185, 185, 185, 255, AC_TYPE_HUD );
57 #else
58         gr_init_alphacolor( &Color_white, 105, 105, 105, 255, AC_TYPE_HUD );
59 #endif
60         gr_init_alphacolor( &Color_bright_white, 255, 255, 255, 255, AC_TYPE_HUD );
61
62         gr_init_alphacolor( &Color_violet_gray, 160, 144, 160, 255, AC_TYPE_HUD );
63
64         gr_init_alphacolor( &Color_dim_red, 80, 6, 6, 255, AC_TYPE_HUD );
65         gr_init_alphacolor( &Color_red, 126, 6, 6, 255, AC_TYPE_HUD );
66         gr_init_alphacolor( &Color_bright_red, 200, 0, 0, 255, AC_TYPE_HUD );
67
68         gr_init_alphacolor( &Color_yellow, 113, 184, 124, 255, AC_TYPE_HUD );
69         gr_init_alphacolor( &Color_bright_yellow, 162, 210, 162, 255, AC_TYPE_HUD );
70
71         gr_init_alphacolor( &Color_ui_light_green, 161, 184, 161, 255, AC_TYPE_HUD );
72         gr_init_alphacolor( &Color_ui_green, 190, 228, 190, 255, AC_TYPE_HUD );
73
74         gr_init_alphacolor( &Color_ui_light_pink, 184, 161, 161, 255, AC_TYPE_HUD );
75         gr_init_alphacolor( &Color_ui_pink, 228, 190, 190, 255, AC_TYPE_HUD );
76 }
77