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