annotate Viewport.h @ 2296:6e178010fc29

libpng
author Ritor1
date Mon, 17 Mar 2014 01:21:55 +0600
parents 92511cd8fcdb
children 5d263539bbec
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3 /* 149 */
Ritor1
parents:
diff changeset
4 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
5 struct Viewport
Ritor1
parents:
diff changeset
6 {
2151
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
7 inline Viewport()
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
8 {
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
9 field_of_view = 65536 / 2;
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
10 SetScreen(0, 0, 639, 479);
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
11 }
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
12
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
13 void SetScreen(signed int uX, signed int uY, signed int uZ, signed int uW);
2151
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
14 void SetFOV(int a2);
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
15 void SetViewport(signed int uX, signed int uY, signed int uZ, signed int uW);
0
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
18 signed int uScreen_TL_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
19 signed int uScreen_TL_Y;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
20 signed int uScreen_BR_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
21 signed int uScreen_BR_Y;
693
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
22 signed int uViewportTL_X;
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
23 signed int uViewportTL_Y;
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
24 signed int uViewportBR_X;
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
25 signed int uViewportBR_Y;
0
Ritor1
parents:
diff changeset
26 int uScreenWidth;
Ritor1
parents:
diff changeset
27 int uScreenHeight;
Ritor1
parents:
diff changeset
28 int uScreenCenterX;
Ritor1
parents:
diff changeset
29 int uScreenCenterY;
2151
92511cd8fcdb Cleaned some variables.
Nomad
parents: 1720
diff changeset
30 int field_of_view;
0
Ritor1
parents:
diff changeset
31 };
Ritor1
parents:
diff changeset
32 #pragma pack(pop)
Ritor1
parents:
diff changeset
33
Ritor1
parents:
diff changeset
34
Ritor1
parents:
diff changeset
35
Ritor1
parents:
diff changeset
36 extern struct Viewport *pViewport;
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38
Ritor1
parents:
diff changeset
39
Ritor1
parents:
diff changeset
40 /* 201 */
Ritor1
parents:
diff changeset
41 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
42 struct ViewingParams
Ritor1
parents:
diff changeset
43 {
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
44 inline ViewingParams()
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
45 {
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
46 draw_sw_outlines = false;
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
47 draw_d3d_outlines = false;
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 711
diff changeset
48 field_4C = 0;
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
49 }
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
50
693
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
51 void CenterOnParty2();
688
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
52 void InitGrayPalette();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
53 void _443219();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
54 void _443225();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
55 void _443231();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
56 void _44323D();
693
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
57 void CenterOnParty();
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
58 void AdjustPosition();
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
59 void _443365();
0
Ritor1
parents:
diff changeset
60
Ritor1
parents:
diff changeset
61
Ritor1
parents:
diff changeset
62
Ritor1
parents:
diff changeset
63 int uSomeX;
Ritor1
parents:
diff changeset
64 int uSomeY;
Ritor1
parents:
diff changeset
65 int uSomeZ;
Ritor1
parents:
diff changeset
66 int uSomeW;
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
67 unsigned int uScreen_topL_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
68 unsigned int uScreen_topL_Y;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
69 unsigned int uScreen_BttmR_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
70 unsigned int uScreen_BttmR_Y;
0
Ritor1
parents:
diff changeset
71 int field_20;
Ritor1
parents:
diff changeset
72 unsigned int uMinimapZoom;
Ritor1
parents:
diff changeset
73 int field_28;
1720
Ritor1
parents: 832
diff changeset
74 unsigned int uMapBookMapZoom;
693
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
75 int sViewCenterX;
e0a1fccc89b1 map render fixes
Gloval
parents: 692
diff changeset
76 int sViewCenterY;
711
a5e587c8e30e some cleaning
Gloval
parents: 693
diff changeset
77 __int16 indoor_center_x;
a5e587c8e30e some cleaning
Gloval
parents: 693
diff changeset
78 __int16 indoor_center_y;
0
Ritor1
parents:
diff changeset
79 int field_3C;
Ritor1
parents:
diff changeset
80 unsigned int uTextureID_LocationMap;
Ritor1
parents:
diff changeset
81 int bRedrawGameUI;
Ritor1
parents:
diff changeset
82 int field_48;
Ritor1
parents:
diff changeset
83 int field_4C;
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
84 int draw_sw_outlines;
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
85 int draw_d3d_outlines;
0
Ritor1
parents:
diff changeset
86 int field_58;
Ritor1
parents:
diff changeset
87 int field_5C;
Ritor1
parents:
diff changeset
88 int field_60;
Ritor1
parents:
diff changeset
89 int field_64;
Ritor1
parents:
diff changeset
90 int field_68;
Ritor1
parents:
diff changeset
91 unsigned __int16 pPalette[256];
Ritor1
parents:
diff changeset
92 };
Ritor1
parents:
diff changeset
93 #pragma pack(pop)
Ritor1
parents:
diff changeset
94
Ritor1
parents:
diff changeset
95
Ritor1
parents:
diff changeset
96
Ritor1
parents:
diff changeset
97 extern struct ViewingParams *viewparams;