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