Mercurial > mm7
comparison mm7_data.h @ 2463:0f17a30149ec
cleaning project part 1
author | zipi |
---|---|
date | Sun, 17 Aug 2014 15:13:18 +0100 |
parents | d922225a6081 |
children | 104fdbea0386 |
comparison
equal
deleted
inserted
replaced
2462:1d04e48651d4 | 2463:0f17a30149ec |
---|---|
8 | 8 |
9 //typedef char _UNKNOWN; | 9 //typedef char _UNKNOWN; |
10 typedef unsigned int uint; | 10 typedef unsigned int uint; |
11 | 11 |
12 | 12 |
13 | 13 #pragma pack(push, 1) |
14 struct DDM_DLV_Header | |
15 { | |
16 //----- (00462607) -------------------------------------------------------- | |
17 inline DDM_DLV_Header() | |
18 { | |
19 this->uLastRepawnDay = 0; | |
20 this->uNumRespawns = 0; | |
21 this->uReputation = 0; | |
22 this->field_C_alert = 0; | |
23 this->uNumFacesInBModels = 0; | |
24 this->uNumDecorations = 0; | |
25 this->uNumBModels = 0; | |
26 } | |
27 | |
28 | |
29 int uNumRespawns; | |
30 int uLastRepawnDay; | |
31 int uReputation; | |
32 int field_C_alert; | |
33 unsigned int uNumFacesInBModels; | |
34 unsigned int uNumDecorations; | |
35 unsigned int uNumBModels; | |
36 int field_1C; | |
37 int field_20; | |
38 int field_24; | |
39 }; | |
40 #pragma pack(pop) | |
41 | |
42 | |
43 struct ODMFace; | |
44 | |
45 | |
46 /* 141 */ | |
47 // stru148 | |
48 #pragma pack(push, 1) | |
49 struct Polygon | |
50 { | |
51 inline Polygon() | |
52 { | |
53 uNumVertices = 0; | |
54 } | |
55 | |
56 int _479295(); | |
57 //void _48276F_sr(); | |
58 void _normalize_v_18(); | |
59 void Create_48607B(struct stru149 *a2); | |
60 | |
61 float field_0; | |
62 float field_4; | |
63 float field_8; | |
64 float field_C; | |
65 float field_10; | |
66 unsigned int uNumVertices; | |
67 Vec3_int_ v_18; | |
68 int field_24; | |
69 int sTextureDeltaU; | |
70 int sTextureDeltaV; | |
71 __int16 flags; | |
72 __int16 field_32; | |
73 int field_34; | |
74 struct stru149 *ptr_38; | |
75 struct Texture *pTexture; | |
76 struct Span *_unused_prolly_head; | |
77 struct Span *_unused_prolly_tail; | |
78 int **ptr_48; | |
79 unsigned __int16 uTileBitmapID; | |
80 __int16 field_4E; | |
81 __int16 field_50; | |
82 __int16 field_52; | |
83 ODMFace *pODMFace; | |
84 char dimming_level; | |
85 char field_59; | |
86 char field_5A; | |
87 char field_5B; | |
88 char terrain_grid_z; | |
89 char terrain_grid_x; | |
90 unsigned __int8 uBModelID; | |
91 unsigned __int8 uBModelFaceID; | |
92 struct Edge *pEdgeList1[20]; | |
93 unsigned int uEdgeList1Size; | |
94 struct Edge *pEdgeList2[20]; | |
95 unsigned int uEdgeList2Size; | |
96 char field_108; | |
97 char field_109; | |
98 char field_10A; | |
99 char field_10B; | |
100 }; | |
101 #pragma pack(pop) | |
102 extern std::array<struct Polygon, 2000 + 18000> array_77EC08; | |
103 | |
104 | |
105 /* 142 */ | |
106 #pragma pack(push, 1) | |
107 struct stru149 | |
108 { | |
109 void _48616B_frustum_odm(int a2, int a3, int a4, int a5, int a6, int a7); | |
110 void _48653D_frustum_blv(int a2, int a3, int a4, int a5, int a6, int a7); | |
111 void _48694B_frustum_sky(); | |
112 | |
113 int field_0_party_dir_x; | |
114 int field_4_party_dir_y; | |
115 int field_8_party_dir_z; | |
116 int angle_from_north;//field_C | |
117 int angle_from_west;//field_10 | |
118 int viewing_angle_from_west_east; | |
119 int angle_from_east;//field_18 | |
120 int angle_from_south;//field_1C | |
121 int viewing_angle_from_north_south;//field_20 | |
122 int field_24; | |
123 int field_28; | |
124 }; | |
125 #pragma pack(pop) | |
126 extern stru149 stru_8019C8; | |
127 | |
128 /* 88 */ | |
129 #pragma pack(push, 1) | |
130 struct ODMRenderParams | |
131 { | |
132 //----- (00462684) -------------------------------------------------------- | |
133 ODMRenderParams() | |
134 { | |
135 uPickDepth = 0; | |
136 this->shading_dist_shade = 2048; | |
137 shading_dist_shademist = 4096; | |
138 shading_dist_mist = 8192; | |
139 int_fov_rad = 0; | |
140 this->bNoSky = 0; | |
141 this->bDoNotRenderDecorations = 0; | |
142 this->field_5C = 0; | |
143 this->field_60 = 0; | |
144 this->outdoor_no_wavy_water = 0; | |
145 this->outdoor_no_mist = 0; | |
146 } | |
147 | |
148 void Initialize(); | |
149 | |
150 int uPickDepth; | |
151 int shading_dist_shade; | |
152 int shading_dist_shademist; | |
153 int shading_dist_mist; | |
154 unsigned int uCameraFovInDegrees; | |
155 int int_fov_rad; // 157 struct IndoorCamera::fov_rad | |
156 int int_fov_rad_inv; // 157 struct IndoorCamera::fov_rad_inv | |
157 int _unused_camera_rotation_y_int_sine; // merged with BLVRenderParams equivalents | |
158 int _unused_camera_rotation_y_int_cosine; // into IndoorCameraD3D | |
159 int _unused_camera_rotation_x_int_sine; // --//-- | |
160 int _unused_camera_rotation_x_int_cosine; // --//-- | |
161 int uNumPolygons; | |
162 unsigned int _unused_uNumEdges; | |
163 unsigned int _unused_uNumSurfs; | |
164 unsigned int _unused_uNumSpans; | |
165 unsigned int uNumBillboards; | |
166 float field_40; | |
167 int field_44; | |
168 int outdoor_grid_band_3; | |
169 int field_4C; | |
170 int field_50; | |
171 unsigned int bNoSky; | |
172 unsigned int bDoNotRenderDecorations; | |
173 int field_5C; | |
174 int field_60; | |
175 int outdoor_no_wavy_water; | |
176 int outdoor_no_mist; | |
177 int building_gamme; | |
178 int terrain_gamma; | |
179 | |
180 unsigned int uMapGridCellX; // moved from 157 struct IndoorCamera::0C | |
181 unsigned int uMapGridCellZ; // moved from 157 struct IndoorCamera::10 | |
182 }; | |
183 #pragma pack(pop) | |
184 extern ODMRenderParams *pODMRenderParams; | |
14 | 185 |
15 | 186 |
16 | 187 |
17 | 188 |
18 | 189 |