Debian Codegraph @

common/3d/globvars.cpp

raw
1 /*
2 * This file is part of the DXX-Rebirth project <https://www.dxx-rebirth.com/>.
3 * It is copyright by its individual contributors, as recorded in the
4 * project's Git history. See COPYING.txt at the top level for license
5 * terms and a link to the Git history.
6 */
7 /*
8 *
9 * Global variables for 3d
10 *
11 */
12
13
14 #include "3d.h"
15 #include "globvars.h"
16
17 namespace dcx {
18
19 vms_vector View_position;
20
21 vms_matrix Unscaled_matrix; //before scaling
22 vms_matrix View_matrix;
23
24 vms_vector Window_scale; //scaling for window aspect
25 vms_vector Matrix_scale; //how the matrix is scaled, window_scale * zoom
26
27 fix Canv_w2; //fixed-point width/2
28 fix Canv_h2; //fixed-point height/2
29
30 #ifdef __powerc
31 double fCanv_w2;
32 double fCanv_h2;
33 #endif
34
35 //vertex buffers for polygon drawing and clipping
36
37 //list of 2d coords
38
39
40
41 }