2 * $Logfile: /Freespace2/code/FRED2/FredRender.h $
7 * Handles all view rendering in FRED.
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 2 10/07/98 6:28p Dave
15 * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
16 * Fred. Globalized mission and campaign file extensions. Removed Silent
17 * Threat specific code.
19 * 1 10/07/98 3:01p Dave
21 * 1 10/07/98 3:00p Dave
23 * 26 3/19/98 11:41a Hoffoss
24 * Fixed problems with rendering and reading of flying controls in Fred.
26 * 25 10/30/97 3:30p Hoffoss
27 * Made anti-aliased gridlines an option in Fred.
29 * 24 9/09/97 2:12p Hoffoss
30 * Added code to allow briefing editor view to be a 1:1 pixel size fixed
31 * as the FreeSpace view will have.
33 * 23 8/25/97 5:58p Hoffoss
34 * Created menu items for keypress functions in Fred, and fixed bug this
35 * uncovered with wing_delete function.
37 * 22 8/07/97 6:01p Hoffoss
38 * Added a rotate about selected object button to toolbar and
39 * functionality, as requested by Comet.
41 * 21 8/06/97 6:10p Hoffoss
42 * Changed Fred to display a forced aspect ratio while briefing editor is
43 * open. This aspect ratio is the same as the briefing view in FreeSpace,
44 * so icons appear on and off screen the same as would be in FreeSpace.
46 * 20 6/26/97 5:18p Hoffoss
47 * Major rework of briefing editor functionality.
49 * 19 6/23/97 3:00p Hoffoss
52 * 18 6/23/97 2:58p Hoffoss
53 * Added briefing lookat point variables.
55 * 17 6/18/97 11:36p Lawrance
56 * move grid rendering code to MissionGrid.cpp
58 * 16 6/12/97 11:27a Lawrance
59 * separating FRED dependant briefing code
61 * 15 3/06/97 3:35p Hoffoss
62 * Added Show_outline stuff, moved show options to the view menu, fixed a
63 * bug in message dialog editor.
65 * 14 2/20/97 4:03p Hoffoss
66 * Several ToDo items: new reinforcement clears arrival cue, reinforcement
67 * control from ship and wing dialogs, show grid toggle.
69 * 13 12/02/96 3:36p Hoffoss
70 * Show horizon now implemented.
72 * 12 11/22/96 12:24p Hoffoss
73 * Editor functionality added.
75 * 11 11/21/96 12:52p Hoffoss
76 * Changes to flying controls, etc.
78 * 10 11/21/96 9:20a Hoffoss
79 * New show distances feature.
81 * 9 11/20/96 5:16p Hoffoss
82 * New grid system working as suggested.
84 * 8 11/20/96 10:01a Hoffoss
85 * A few minor improvements.
87 * 7 11/19/96 9:50a Hoffoss
88 * New interface working, but not finished yet.
90 * 6 11/15/96 1:43p Hoffoss
91 * Improvements to the Ship Dialog editor window. It is now an
92 * independant window that updates data correctly.
94 * 5 11/14/96 10:43a Hoffoss
95 * Made changes to grid display and how it works, etc.
97 * 4 11/13/96 10:15a Hoffoss
98 * Waypoint editing added, but not quite finished yet.
100 * 3 11/12/96 11:14a Hoffoss
101 * Everything check in because I don't know what's changed and what's not
102 * to prevent compiling.
104 * 2 11/11/96 3:47p Hoffoss
107 * 1 10/29/96 12:17p Hoffoss
112 #include "missiongrid.h"
114 #define BRIEFING_LOOKAT_POINT_ID 99999
116 extern int Aa_gridlines;
117 extern int player_start1;
118 extern int Editing_mode;
119 extern int Control_mode;
120 extern int Show_grid;
121 extern int Show_grid_positions;
122 extern int Show_coordinates;
123 extern int Show_outlines;
124 extern int Single_axis_constraint;
125 extern int Show_distances;
126 extern int Universal_heading;
127 extern int Flying_controls_mode;
128 extern int Group_rotate;
129 extern int Show_horizon;
130 extern int Lookat_mode;
131 extern int True_rw, True_rh;
132 extern int Fixed_briefing_size;
133 extern vector Constraint, Anticonstraint;
134 extern vector Tp1, Tp2; // test points
135 extern physics_info view_physics;
136 extern vector view_pos, eye_pos;
137 extern matrix view_orient, eye_orient;
139 void fred_render_init();
140 void generate_starfield();
141 void move_mouse(int btn, int mdx, int mdy);
142 void game_do_frame();
144 void level_controlled();
145 void verticalize_controlled();