annotate Viewport.h @ 692:066e2b29b30f

viewport.cpp added
author Gloval
date Sat, 16 Mar 2013 21:57:32 +0400
parents c0bfb386b15f
children e0a1fccc89b1
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 {
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
7 void SetScreen(signed int uX, signed int uY, signed int uZ, signed int uW);
0
Ritor1
parents:
diff changeset
8 void _4C02F8(int a2);
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
9 void SetViewport(signed int uX, signed int uY, signed int uZ, signed int uW);
0
Ritor1
parents:
diff changeset
10
Ritor1
parents:
diff changeset
11
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
12 signed int uScreen_TL_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
13 signed int uScreen_TL_Y;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
14 signed int uScreen_BR_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
15 signed int uScreen_BR_Y;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
16 signed int uViewportX;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
17 signed int uViewportY;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
18 signed int uViewportZ;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
19 signed int uViewportW;
0
Ritor1
parents:
diff changeset
20 int uScreenWidth;
Ritor1
parents:
diff changeset
21 int uScreenHeight;
Ritor1
parents:
diff changeset
22 int uScreenCenterX;
Ritor1
parents:
diff changeset
23 int uScreenCenterY;
Ritor1
parents:
diff changeset
24 int field_30;
Ritor1
parents:
diff changeset
25 };
Ritor1
parents:
diff changeset
26 #pragma pack(pop)
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29
Ritor1
parents:
diff changeset
30 extern struct Viewport *pViewport;
Ritor1
parents:
diff changeset
31
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33
Ritor1
parents:
diff changeset
34 /* 201 */
Ritor1
parents:
diff changeset
35 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
36 struct ViewingParams
Ritor1
parents:
diff changeset
37 {
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
38 inline ViewingParams()
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
39 {
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
40 draw_sw_outlines = false;
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
41 draw_d3d_outlines = false;
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
42 }
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
43
688
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
44 void _443291();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
45 void InitGrayPalette();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
46 void _443219();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
47 void _443225();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
48 void _443231();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
49 void _44323D();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
50 void _443249();
c0bfb386b15f some ui cleanup
Gloval
parents: 186
diff changeset
51 void _4432E7();
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
52 void _443365();
0
Ritor1
parents:
diff changeset
53
Ritor1
parents:
diff changeset
54
Ritor1
parents:
diff changeset
55
Ritor1
parents:
diff changeset
56 int uSomeX;
Ritor1
parents:
diff changeset
57 int uSomeY;
Ritor1
parents:
diff changeset
58 int uSomeZ;
Ritor1
parents:
diff changeset
59 int uSomeW;
692
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
60 unsigned int uScreen_topL_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
61 unsigned int uScreen_topL_Y;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
62 unsigned int uScreen_BttmR_X;
066e2b29b30f viewport.cpp added
Gloval
parents: 688
diff changeset
63 unsigned int uScreen_BttmR_Y;
0
Ritor1
parents:
diff changeset
64 int field_20;
Ritor1
parents:
diff changeset
65 unsigned int uMinimapZoom;
Ritor1
parents:
diff changeset
66 int field_28;
Ritor1
parents:
diff changeset
67 int field_2C;
Ritor1
parents:
diff changeset
68 int sPartyPosX;
Ritor1
parents:
diff changeset
69 int sPartyPosZ;
Ritor1
parents:
diff changeset
70 __int16 field_38;
Ritor1
parents:
diff changeset
71 __int16 field_3A;
Ritor1
parents:
diff changeset
72 int field_3C;
Ritor1
parents:
diff changeset
73 unsigned int uTextureID_LocationMap;
Ritor1
parents:
diff changeset
74 int bRedrawGameUI;
Ritor1
parents:
diff changeset
75 int field_48;
Ritor1
parents:
diff changeset
76 int field_4C;
186
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
77 int draw_sw_outlines;
d65528fc3bda D3D constants, shore tiles, camera flags
Nomad
parents: 0
diff changeset
78 int draw_d3d_outlines;
0
Ritor1
parents:
diff changeset
79 int field_58;
Ritor1
parents:
diff changeset
80 int field_5C;
Ritor1
parents:
diff changeset
81 int field_60;
Ritor1
parents:
diff changeset
82 int field_64;
Ritor1
parents:
diff changeset
83 int field_68;
Ritor1
parents:
diff changeset
84 unsigned __int16 pPalette[256];
Ritor1
parents:
diff changeset
85 };
Ritor1
parents:
diff changeset
86 #pragma pack(pop)
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88
Ritor1
parents:
diff changeset
89
Ritor1
parents:
diff changeset
90 extern struct ViewingParams *viewparams;