Debian Codegraph @

editor/moveworld.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 * Header for moveworld.cpp
21 *
22 */
23
24 #ifndef _MOVEWORLD_H
25 #define _MOVEWORLD_H
26
27 #include "vecmat.h"
28
29 // Read the mouse and move the wireframe view
30 void MoveWorld();
31
32 // Reset the orienation, position, & distance of the wireframe view
33 void ResetWireframeView();
34
35 // Reset the view radius of the wireframe view
36 void ResetWireframeViewRad();
37
38 // Set the wireframe view target to a specific location
39 // Does not reset the distance or orientation
40 void SetWireframeView(vector *pos);
41
42 // Structure to describe the wireframe view
43 struct wireframe_view {
44 matrix orient;
45 vector target;
46 float dist;
47 float rad;
48 };
49
50 // The current wireframe view
51 extern wireframe_view *Wireframe_view;
52
53 // Wireframe views for the mine & room views
54 extern wireframe_view Wireframe_view_mine, Wireframe_view_room;
55
56 #endif // ifndef _MOVEWORLD_H