0
|
1 #pragma once
|
|
2
|
|
3 /* 149 */
|
|
4 #pragma pack(push, 1)
|
|
5 struct Viewport
|
|
6 {
|
2151
|
7 inline Viewport()
|
|
8 {
|
|
9 field_of_view = 65536 / 2;
|
|
10 SetScreen(0, 0, 639, 479);
|
|
11 }
|
|
12
|
692
|
13 void SetScreen(signed int uX, signed int uY, signed int uZ, signed int uW);
|
2151
|
14 void SetFOV(int a2);
|
692
|
15 void SetViewport(signed int uX, signed int uY, signed int uZ, signed int uW);
|
0
|
16
|
|
17
|
692
|
18 signed int uScreen_TL_X;
|
|
19 signed int uScreen_TL_Y;
|
|
20 signed int uScreen_BR_X;
|
|
21 signed int uScreen_BR_Y;
|
693
|
22 signed int uViewportTL_X;
|
|
23 signed int uViewportTL_Y;
|
|
24 signed int uViewportBR_X;
|
|
25 signed int uViewportBR_Y;
|
0
|
26 int uScreenWidth;
|
|
27 int uScreenHeight;
|
|
28 int uScreenCenterX;
|
|
29 int uScreenCenterY;
|
2151
|
30 int field_of_view;
|
0
|
31 };
|
|
32 #pragma pack(pop)
|
|
33
|
|
34
|
|
35
|
|
36 extern struct Viewport *pViewport;
|
|
37
|
|
38
|
|
39
|
|
40 /* 201 */
|
|
41 #pragma pack(push, 1)
|
|
42 struct ViewingParams
|
|
43 {
|
186
|
44 inline ViewingParams()
|
|
45 {
|
|
46 draw_sw_outlines = false;
|
|
47 draw_d3d_outlines = false;
|
832
|
48 field_4C = 0;
|
186
|
49 }
|
|
50
|
693
|
51 void CenterOnParty2();
|
688
|
52 void InitGrayPalette();
|
|
53 void _443219();
|
|
54 void _443225();
|
|
55 void _443231();
|
|
56 void _44323D();
|
693
|
57 void CenterOnParty();
|
|
58 void AdjustPosition();
|
692
|
59 void _443365();
|
0
|
60
|
|
61
|
|
62
|
|
63 int uSomeX;
|
|
64 int uSomeY;
|
|
65 int uSomeZ;
|
|
66 int uSomeW;
|
692
|
67 unsigned int uScreen_topL_X;
|
|
68 unsigned int uScreen_topL_Y;
|
|
69 unsigned int uScreen_BttmR_X;
|
|
70 unsigned int uScreen_BttmR_Y;
|
0
|
71 int field_20;
|
|
72 unsigned int uMinimapZoom;
|
|
73 int field_28;
|
1720
|
74 unsigned int uMapBookMapZoom;
|
693
|
75 int sViewCenterX;
|
|
76 int sViewCenterY;
|
711
|
77 __int16 indoor_center_x;
|
|
78 __int16 indoor_center_y;
|
0
|
79 int field_3C;
|
|
80 unsigned int uTextureID_LocationMap;
|
|
81 int bRedrawGameUI;
|
|
82 int field_48;
|
|
83 int field_4C;
|
186
|
84 int draw_sw_outlines;
|
|
85 int draw_d3d_outlines;
|
0
|
86 int field_58;
|
|
87 int field_5C;
|
|
88 int field_60;
|
|
89 int field_64;
|
|
90 int field_68;
|
|
91 unsigned __int16 pPalette[256];
|
|
92 };
|
|
93 #pragma pack(pop)
|
|
94
|
|
95
|
|
96
|
|
97 extern struct ViewingParams *viewparams; |