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