]> icculus.org git repositories - taylor/freespace2.git/blob - include/hudlock.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / hudlock.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/HUDlock.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Header file for missile locking code
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  * 2     10/07/98 10:53a Dave
26  * Initial checkin.
27  * 
28  * 1     10/07/98 10:49a Dave
29  * 
30  * 12    4/08/98 8:33p Lawrance
31  * Make player re-acquire lock when targeting subsystems on a locked ship.
32  * 
33  * 11    3/10/98 4:19p John
34  * Cleaned up graphics lib.  Took out most unused gr functions.   Made D3D
35  * & Glide have popups and print screen.  Took out all >8bpp software
36  * support.  Made Fred zbuffer.  Made zbuffer allocate dynamically to
37  * support Fred.  Made zbuffering key off of functions rather than one
38  * global variable.
39  * 
40  * 10    2/28/98 7:03p Lawrance
41  * Change player missile locking to use dot product, so we can use it in
42  * the external views
43  * 
44  * 9     1/23/98 6:25p Lawrance
45  * Change player missile locking to lock on subsystem points automatically
46  * 
47  * 8     1/21/98 7:20p Lawrance
48  * Make subsystem locking only work with line-of-sight, cleaned up locking
49  * code, moved globals to player struct.
50  * 
51  * 7     1/19/98 10:02p Lawrance
52  * Fix bug with locking on friendlies
53  * 
54  * 6     11/17/97 6:37p Lawrance
55  * new gauges: extended target view, new lock triangles, support ship view
56  * 
57  * 5     4/13/97 3:53p Lawrance
58  * separate out the non-rendering dependant portions of the HUD ( sounds,
59  * updating lock position, changing targets, etc) and put into
60  * hud_update_frame()
61  * 
62  * 4     3/19/97 5:53p Lawrance
63  * integrating new Misc_sounds[] array (replaces old Game_sounds
64  * structure)
65  * 
66  * 3     1/02/97 7:12p Lawrance
67  * adding hooks for more sounds
68  * 
69  * 2     12/23/96 7:53p Lawrance
70  * missile locking working in new source files
71  *
72  * $NoKeywords: $
73  */
74
75 #ifndef _HUDLOCK_H
76 #define _HUDLOCK_H
77
78 void hud_init_missile_lock();
79 void hud_draw_lock_triangles(int center_x, int center_y, float frametime);
80 void hud_calculate_lock_position(float frametime);
81 void hud_calculate_lock_start_pos();
82 void hud_show_lock_indicator(float frametime);
83 void hud_update_lock_indicator(float frametime);
84 void hud_stop_looped_locking_sounds();
85 void hud_lock_reset(float lock_time_scale=1.0f);
86
87 #endif
88