Mercurial > mm7
annotate Outdoor_stuff.h @ 2256:27f2a2c2fd8f
_46A89E_immolation_effect moved into Party
author | Grumpy7 |
---|---|
date | Thu, 27 Feb 2014 00:30:03 +0100 |
parents | d28d3c006077 |
children |
rev | line source |
---|---|
0 | 1 #pragma once |
1277 | 2 #include "VectorTypes.h" |
3 #include <array> | |
0 | 4 |
1277 | 5 struct ODMFace; |
0 | 6 |
7 | |
8 /* 141 */ | |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1344
diff
changeset
|
9 // stru148 |
0 | 10 #pragma pack(push, 1) |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1344
diff
changeset
|
11 struct Polygon |
0 | 12 { |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1344
diff
changeset
|
13 inline Polygon() |
265 | 14 { |
15 uNumVertices = 0; | |
16 } | |
17 | |
0 | 18 int _479295(); |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1344
diff
changeset
|
19 //void _48276F_sr(); |
1410
38df78aba732
deleted stru220.h and stru220 (bezier terrain stuff)
Nomad
parents:
1391
diff
changeset
|
20 void _normalize_v_18(); |
1427 | 21 void Create_48607B(struct stru149 *a2); |
0 | 22 |
23 float field_0; | |
24 float field_4; | |
25 float field_8; | |
26 float field_C; | |
27 float field_10; | |
28 unsigned int uNumVertices; | |
29 Vec3_int_ v_18; | |
30 int field_24; | |
31 int sTextureDeltaU; | |
32 int sTextureDeltaV; | |
33 __int16 flags; | |
34 __int16 field_32; | |
35 int field_34; | |
36 struct stru149 *ptr_38; | |
1262 | 37 struct Texture *pTexture; |
1644 | 38 struct Span *_unused_prolly_head; |
39 struct Span *_unused_prolly_tail; | |
0 | 40 int **ptr_48; |
41 unsigned __int16 uTileBitmapID; | |
42 __int16 field_4E; | |
43 __int16 field_50; | |
44 __int16 field_52; | |
45 ODMFace *pODMFace; | |
638 | 46 char dimming_level; |
0 | 47 char field_59; |
48 char field_5A; | |
49 char field_5B; | |
638 | 50 char terrain_grid_z; |
51 char terrain_grid_x; | |
0 | 52 unsigned __int8 uBModelID; |
53 unsigned __int8 uBModelFaceID; | |
54 struct Edge *pEdgeList1[20]; | |
55 unsigned int uEdgeList1Size; | |
56 struct Edge *pEdgeList2[20]; | |
57 unsigned int uEdgeList2Size; | |
58 char field_108; | |
59 char field_109; | |
60 char field_10A; | |
61 char field_10B; | |
62 }; | |
63 #pragma pack(pop) | |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1344
diff
changeset
|
64 extern std::array<struct Polygon, 2000 + 18000> array_77EC08; |
0 | 65 |
66 /* 142 */ | |
67 #pragma pack(push, 1) | |
68 struct stru149 | |
69 { | |
1544 | 70 void _48616B_frustum_odm(int a2, int a3, int a4, int a5, int a6, int a7); |
71 void _48653D_frustum_blv(int a2, int a3, int a4, int a5, int a6, int a7); | |
72 void _48694B_frustum_sky(); | |
0 | 73 |
755 | 74 int field_0_party_dir_x; |
75 int field_4_party_dir_y; | |
1544 | 76 int field_8_party_dir_z; |
1809 | 77 int angle_from_north;//field_C |
78 int angle_from_west;//field_10 | |
1844 | 79 int viewing_angle_from_west_east; |
1809 | 80 int angle_from_east;//field_18 |
81 int angle_from_south;//field_1C | |
1844 | 82 int viewing_angle_from_north_south;//field_20 |
0 | 83 int field_24; |
84 int field_28; | |
85 }; | |
86 #pragma pack(pop) | |
87 extern stru149 stru_8019C8; | |
88 | |
89 | |
1637 | 90 /* 88 */ |
0 | 91 #pragma pack(push, 1) |
1637 | 92 struct ODMRenderParams |
0 | 93 { |
1637 | 94 //----- (00462684) -------------------------------------------------------- |
95 ODMRenderParams() | |
96 { | |
97 uPickDepth = 0; | |
98 this->shading_dist_shade = 2048; | |
99 shading_dist_shademist = 4096; | |
100 shading_dist_mist = 8192; | |
101 int_fov_rad = 0; | |
102 this->bNoSky = 0; | |
103 this->bDoNotRenderDecorations = 0; | |
104 this->field_5C = 0; | |
105 this->field_60 = 0; | |
106 this->outdoor_no_wavy_water = 0; | |
107 this->outdoor_no_mist = 0; | |
108 } | |
109 | |
110 void Initialize(); | |
111 | |
112 int uPickDepth; | |
113 int shading_dist_shade; | |
114 int shading_dist_shademist; | |
115 int shading_dist_mist; | |
116 unsigned int uCameraFovInDegrees; | |
1642 | 117 int int_fov_rad; // 157 struct IndoorCamera::fov_rad |
118 int int_fov_rad_inv; // 157 struct IndoorCamera::fov_rad_inv | |
119 int _unused_camera_rotation_y_int_sine; // merged with BLVRenderParams equivalents | |
120 int _unused_camera_rotation_y_int_cosine; // into IndoorCameraD3D | |
121 int _unused_camera_rotation_x_int_sine; // --//-- | |
122 int _unused_camera_rotation_x_int_cosine; // --//-- | |
1637 | 123 int uNumPolygons; |
1642 | 124 unsigned int _unused_uNumEdges; |
125 unsigned int _unused_uNumSurfs; | |
126 unsigned int _unused_uNumSpans; | |
1637 | 127 unsigned int uNumBillboards; |
128 float field_40; | |
129 int field_44; | |
130 int outdoor_grid_band_3; | |
131 int field_4C; | |
132 int field_50; | |
133 unsigned int bNoSky; | |
134 unsigned int bDoNotRenderDecorations; | |
135 int field_5C; | |
136 int field_60; | |
137 int outdoor_no_wavy_water; | |
138 int outdoor_no_mist; | |
139 int building_gamme; | |
140 int terrain_gamma; | |
1640
afc1c3514dd5
Some common code from ODM and BLV RenderParams moved to IndoorCameraD3D
Nomad
parents:
1638
diff
changeset
|
141 |
1638
ccde94f02b75
class IndoorCamera split into BLVRenderParams and ODMRenderParams
Nomad
parents:
1637
diff
changeset
|
142 unsigned int uMapGridCellX; // moved from 157 struct IndoorCamera::0C |
ccde94f02b75
class IndoorCamera split into BLVRenderParams and ODMRenderParams
Nomad
parents:
1637
diff
changeset
|
143 unsigned int uMapGridCellZ; // moved from 157 struct IndoorCamera::10 |
0 | 144 }; |
145 #pragma pack(pop) | |
1637 | 146 extern ODMRenderParams *pODMRenderParams; |
0 | 147 |
148 | |
149 | |
1637 | 150 void ODM_Project(unsigned int uNumVertices); |