Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | pmbaty | 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 | fix View_zoom; |
||
| 21 | |||
| 22 | vms_matrix Unscaled_matrix; //before scaling |
||
| 23 | vms_matrix View_matrix; |
||
| 24 | |||
| 25 | vms_vector Window_scale; //scaling for window aspect |
||
| 26 | vms_vector Matrix_scale; //how the matrix is scaled, window_scale * zoom |
||
| 27 | |||
| 28 | fix Canv_w2; //fixed-point width/2 |
||
| 29 | fix Canv_h2; //fixed-point height/2 |
||
| 30 | |||
| 31 | #ifdef __powerc |
||
| 32 | double fCanv_w2; |
||
| 33 | double fCanv_h2; |
||
| 34 | #endif |
||
| 35 | |||
| 36 | //vertex buffers for polygon drawing and clipping |
||
| 37 | |||
| 38 | //list of 2d coords |
||
| 39 | |||
| 40 | |||
| 41 | |||
| 42 | } |