Debian Codegraph @

Descent3/cockpit.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/main/cockpit.h $
21 * $Revision: 10 $
22 * $Date: 10/20/98 12:42p $
23 * $Author: Matt $
24 *
25 * cockpit code
26 *
27 * $Log: /DescentIII/main/cockpit.h $
28 *
29 * 10 10/20/98 12:42p Matt
30 * Made the small views work on the cockpit.
31 *
32 * 9 8/18/98 1:11a Samir
33 * fixed some stuff for multi cockpit configs.
34 *
35 * 8 5/26/98 5:05p Samir
36 * cockpit and hud config file now 'unified'. cockpit adds to hudconfig
37 * load's funtionality, so cockpit info files can contain same syntax as
38 * hud file.
39 *
40 * 7 5/14/98 7:40p Samir
41 * shaking cockpit.
42 *
43 * 6 5/05/98 6:27p Samir
44 * function that tells the cockpit system that it was resized
45 *
46 * 5 5/01/98 4:24p Samir
47 * added function to quickly open the cockpit.
48 *
49 * 4 4/24/98 8:01a Samir
50 * don't pass zoom argument to Render functions.
51 *
52 * 3 3/17/98 2:37p Samir
53 * reorg of hud/gauge/cockpit dependencies.
54 *
55 * 2 3/16/98 3:30p Samir
56 * incremental checkin.
57 *
58 * 1 3/13/98 11:22a Samir
59 * initial revision.
60 *
61 * $NoKeywords: $
62 */
63
64 #ifndef COCKPIT_H
65 #define COCKPIT_H
66
67 #include "pstypes.h"
68 #include "vecmat.h"
69
70 struct poly_model;
71 struct bsp_info;
72
73 // renders the cockpit.
74 void RenderCockpit();
75
76 // initialization of cockpit information.
77 void InitCockpit(int ship_index);
78
79 // Forces freeing of cockpit information
80 void FreeCockpit();
81
82 // check if cockpit exists
83 bool IsValidCockpit();
84
85 // forces opening of cockpit on hud
86 void OpenCockpit();
87
88 // forces closing of cockpit on hud.
89 void CloseCockpit();
90
91 // resizes cockpit.
92 void ResizeCockpit();
93
94 // forces quick open of cockpit
95 void QuickOpenCockpit();
96
97 // forces quick closing of cockpit
98 void QuickCloseCockpit();
99
100 // returns the submodel number of the monitor requested
101 bsp_info *CockpitGetMonitorSubmodel(uint16_t monitor_flag);
102
103 // returns the polymodel for the hud
104 poly_model *CockpitGetPolyModel();
105
106 // cockpit effects.
107 void StartCockpitShake(float mag, vector *vec);
108
109 #define COCKPIT_STATE_DORMANT 0
110 #define COCKPIT_STATE_QUASI 1 // state changing
111 #define COCKPIT_STATE_FUNCTIONAL 2
112
113 // Tell whether the cockpit is animating
114 int CockpitState();
115
116 #endif