]> icculus.org git repositories - taylor/freespace2.git/blob - include/hudbrackets.h
Initial revision
[taylor/freespace2.git] / include / hudbrackets.h
1 /*
2  * $Logfile: /Freespace2/code/Hud/HUDbrackets.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Header file for drawing target brackets on the HUD
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 3     12/21/98 5:02p Dave
15  * Modified all hud elements to be multi-resolution friendly.
16  * 
17  * 2     10/07/98 10:53a Dave
18  * Initial checkin.
19  * 
20  * 1     10/07/98 10:49a Dave
21  * 
22  * 14    5/03/98 1:07a Mike
23  * Show + for ships attacking your target, whether hostile or friendly.
24  * 
25  * 13    3/19/98 5:36p Lawrance
26  * Let subsystem brackets grow to screen size
27  * 
28  * 12    3/02/98 11:32p Lawrance
29  * Allow asteroids about to impact ships to be bracketed
30  * 
31  * 11    11/27/97 4:24p Lawrance
32  * change appearance of subsystem targeting brackets
33  * 
34  * 10    6/11/97 1:12p John
35  * Started fixing all the text colors in the game.
36  * 
37  * 9     4/09/97 3:30p Lawrance
38  * let target brackets grow to bracket ship entirely
39  * 
40  * 8     4/08/97 1:28p Lawrance
41  * get brackets for targeting and messaging drawing right
42  * 
43  * 7     4/08/97 9:58a Lawrance
44  * center bracket on target center.  Give min and max dimensions to
45  * subsystem target brackets.
46  * 
47  * 6     4/07/97 3:50p Allender
48  * ability to assign > 1 ship to a hotkey.  Enabled use of hotkeys in
49  * squadmate messaging
50  * 
51  * 5     3/27/97 5:44p Lawrance
52  * drawing dashed lines for sub-object targeting box that is not in line
53  * of sight
54  * 
55  * 4     3/27/97 3:59p Lawrance
56  * made brackets draw even if center of target is offscreen
57  * 
58  * 3     3/27/97 9:29a Lawrance
59  * If reach maximum bounding box size, use radius targeting box method
60  * 
61  * 2     12/24/96 4:30p Lawrance
62  * Target bracket drawing code moved to separate files
63  *
64  * $NoKeywords: $
65  */
66
67
68 #ifndef HUD_BRACKETS
69 #define HUD_BRACKETS
70
71 #include "2d.h"
72
73 void hud_init_brackets();
74 void draw_bounding_brackets(int x1, int y1, int x2, int y2, int w_correction, int h_correction, float distance=0.0f, int target_objnum=-1);
75 void draw_bounding_brackets_subobject();
76 void draw_brackets_square(int x1, int y1, int x2, int y2);
77 void draw_brackets_diamond(int x1, int y1, int x2, int y2);
78 void draw_brackets_square_quick(int x1, int y1, int x2, int y2, int thick=0);
79 void draw_brackets_diamond_quick(int x1, int y1, int x2, int y2, int thick=0);
80 void draw_brackets_dashed_square_quick(int x1, int y1, int x2, int y2);
81 int hud_brackets_get_iff_color(int team);
82
83 #endif
84