Mercurial > mm7
comparison Outdoor_stuff.h @ 1669:bd28d08e2c75
Merge
author | Ritor1 |
---|---|
date | Tue, 17 Sep 2013 22:55:48 +0600 |
parents | afc1c3514dd5 |
children | 8971dc85b8fb |
comparison
equal
deleted
inserted
replaced
1668:d17247968bd6 | 1669:bd28d08e2c75 |
---|---|
87 #pragma pack(pop) | 87 #pragma pack(pop) |
88 extern stru149 stru_8019C8; | 88 extern stru149 stru_8019C8; |
89 | 89 |
90 | 90 |
91 | 91 |
92 /* 143 */ | 92 |
93 #define ODM_RENDER_DRAW_D3D_OUTLINES (1 << 1) // 2 | |
94 #define ODM_RENDER_DRAW_TERRAIN_OUTLINES (1 << 2) // 4 | |
95 | |
96 /* 88 */ | |
93 #pragma pack(push, 1) | 97 #pragma pack(push, 1) |
94 struct Span | 98 struct ODMRenderParams |
95 { | 99 { |
96 Span *pNext; | 100 //----- (00462684) -------------------------------------------------------- |
97 struct Polygon *pParent; | 101 ODMRenderParams() |
98 __int16 field_8; | 102 { |
99 __int16 field_A; | 103 uPickDepth = 0; |
100 __int16 field_C; | 104 this->shading_dist_shade = 2048; |
101 __int16 field_E; | 105 shading_dist_shademist = 4096; |
102 float field_10; | 106 shading_dist_mist = 8192; |
103 float field_14; | 107 int_fov_rad = 0; |
108 this->bNoSky = 0; | |
109 this->bDoNotRenderDecorations = 0; | |
110 this->field_5C = 0; | |
111 this->field_60 = 0; | |
112 this->outdoor_no_wavy_water = 0; | |
113 this->outdoor_no_mist = 0; | |
114 } | |
115 | |
116 void Initialize(); | |
117 void RotationToInts(); | |
118 | |
119 int uPickDepth; | |
120 int shading_dist_shade; | |
121 int shading_dist_shademist; | |
122 int shading_dist_mist; | |
123 unsigned int uCameraFovInDegrees; | |
124 int int_fov_rad; // 157 struct IndoorCamera::fov_rad | |
125 int int_fov_rad_inv; // 157 struct IndoorCamera::fov_rad_inv | |
126 int camera_rotation_y_int_sine; | |
127 int camera_rotation_y_int_cosine; | |
128 int camera_rotation_x_int_sine; | |
129 int camera_rotation_x_int_cosine; | |
130 int uNumPolygons; | |
131 unsigned int uNumEdges; | |
132 unsigned int uNumSurfs; | |
133 unsigned int uNumSpans; | |
134 unsigned int uNumBillboards; | |
135 float field_40; | |
136 int field_44; | |
137 int outdoor_grid_band_3; | |
138 int field_4C; | |
139 int field_50; | |
140 unsigned int bNoSky; | |
141 unsigned int bDoNotRenderDecorations; | |
142 int field_5C; | |
143 int field_60; | |
144 int outdoor_no_wavy_water; | |
145 int outdoor_no_mist; | |
146 int building_gamme; | |
147 int terrain_gamma; | |
148 | |
149 unsigned int flags; // moved from 157 struct IndoorCamera::4C | |
150 unsigned int uMapGridCellX; // moved from 157 struct IndoorCamera::0C | |
151 unsigned int uMapGridCellZ; // moved from 157 struct IndoorCamera::10 | |
104 }; | 152 }; |
105 #pragma pack(pop) | 153 #pragma pack(pop) |
154 extern ODMRenderParams *pODMRenderParams; | |
106 | 155 |
107 | 156 |
108 | 157 |
109 /* 144 */ | 158 void ODM_Project(unsigned int uNumVertices); |
110 #pragma pack(push, 1) | |
111 struct Surf | |
112 { | |
113 float field_0; | |
114 float field_4; | |
115 float field_8; | |
116 float field_C; | |
117 float field_10; | |
118 Surf *pNext; | |
119 Surf *pPrev; | |
120 struct Polygon *pParent; | |
121 __int16 field_20; | |
122 __int16 field_22; | |
123 }; | |
124 #pragma pack(pop) | |
125 extern Surf stru_80C980; | |
126 | |
127 | |
128 | |
129 | |
130 /* 145 */ | |
131 #pragma pack(push, 1) | |
132 struct Edge | |
133 { | |
134 float field_0; | |
135 float field_4; | |
136 int field_8; | |
137 Surf *pSurf; | |
138 Edge *pNext; | |
139 Edge *pPrev; | |
140 Edge *ptr_18; | |
141 float field_1C; | |
142 float field_20; | |
143 float field_24; | |
144 float field_28; | |
145 float field_2C; | |
146 float field_30; | |
147 }; | |
148 #pragma pack(pop) | |
149 extern Edge defaultEdge; // weak | |
150 | |
151 extern Edge stru_80C9A4; | |
152 extern Edge stru_80C9D8; | |
153 | |
154 | |
155 | |
156 | |
157 | |
158 | |
159 | |
160 |