Mercurial > mm7
annotate IndoorCameraD3D.h @ 1639:b60ddd777d50
Merge
author | Nomad |
---|---|
date | Tue, 17 Sep 2013 15:40:36 +0200 |
parents | 2c71fa8913d2 |
children | afc1c3514dd5 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 | |
3 | |
4 | |
5 | |
6 /* 124 */ | |
7 #pragma pack(push, 1) | |
8 struct IndoorCameraD3D_Vec3 | |
9 { | |
10 //----- (004C0376) -------------------------------------------------------- | |
11 inline IndoorCameraD3D_Vec3() {} | |
12 //----- (004C037F) -------------------------------------------------------- | |
13 virtual ~IndoorCameraD3D_Vec3() {} | |
14 //----- (004C039C) -------------------------------------------------------- | |
15 //void ~IndoorCameraD3D_Vec3() {} | |
16 | |
1458 | 17 //void ( ***vdestructor_ptr)(IndoorCameraD3D_Vec3 *, bool); |
0 | 18 |
19 union | |
20 { | |
21 struct | |
22 { | |
23 float x; | |
24 float y; | |
25 float z; | |
26 }; | |
27 float v[3]; | |
28 }; | |
29 }; | |
30 #pragma pack(pop) | |
31 | |
32 /* 125 */ | |
33 #pragma pack(push, 1) | |
34 struct IndoorCameraD3D_Vec4: public IndoorCameraD3D_Vec3 | |
35 { | |
36 //----- (00498038) -------------------------------------------------------- | |
37 inline IndoorCameraD3D_Vec4(): | |
38 IndoorCameraD3D_Vec3() | |
39 {} | |
40 | |
41 //----- (00498069) -------------------------------------------------------- | |
42 virtual ~IndoorCameraD3D_Vec4() | |
43 {} | |
44 | |
45 float dot; | |
522 | 46 int _wtf; // sizeof vec4 is 18 and first member is vdtor, but vdtor is already included in vec3 so very weird |
0 | 47 }; |
48 #pragma pack(pop) | |
49 | |
50 | |
51 | |
52 /* 199 */ | |
53 #pragma pack(push, 1) | |
54 struct IndoorCameraD3D_stru3 | |
55 { | |
56 int field_0; | |
57 int field_4; | |
58 int field_8; | |
59 int field_C; | |
60 int field_10; | |
61 int field_14; | |
62 int field_18; | |
63 int field_1C; | |
64 int field_20; | |
65 int field_24; | |
66 int field_28; | |
67 int field_2C; | |
68 float flt_30; | |
69 int field_34; | |
70 }; | |
71 #pragma pack(pop) | |
72 | |
73 | |
74 | |
75 /* 197 */ | |
76 #pragma pack(push, 1) | |
77 struct IndoorCameraD3D_stru1 | |
78 { | |
79 //----- (004363A2) -------------------------------------------------------- | |
80 IndoorCameraD3D_stru1() | |
81 { | |
82 this->flt_2C = 0.0; | |
83 } | |
84 | |
85 | |
86 int field_0; | |
87 int field_4; | |
88 int field_8; | |
89 int field_C; | |
90 int field_10; | |
91 int field_14; | |
92 int field_18; | |
93 int field_1C; | |
94 int field_20; | |
95 int field_24; | |
96 int field_28; | |
97 float flt_2C; | |
98 }; | |
99 #pragma pack(pop) | |
100 | |
101 /* 198 */ | |
102 #pragma pack(push, 1) | |
103 struct IndoorCameraD3D_stru2 | |
104 { | |
105 unsigned int mm7__vector_000004_size; | |
106 IndoorCameraD3D_stru1 mm7__vector_000004[64]; | |
107 int field_C04; | |
108 int field_C08; | |
109 int field_C0C; | |
110 }; | |
111 #pragma pack(pop) | |
112 | |
113 /* 123 */ | |
114 #pragma pack(push, 1) | |
115 struct IndoorCameraD3D | |
116 { | |
117 IndoorCameraD3D(); | |
118 | |
119 //----- (004363C6) -------------------------------------------------------- | |
120 virtual ~IndoorCameraD3D() | |
121 { | |
122 //this->vdestructor_ptr = &stru8_pvdtor; | |
123 //_eh_vector_destructor_iterator_(this->std__vector_000034_prolly_frustrum, 24, 6, IndoorCameraD3D_Vec4::dtor); | |
124 //IndoorCameraD3D_Vec3::dtor(&v1->field_24); | |
125 //IndoorCameraD3D_Vec3::dtor(&v1->field_14); | |
126 //IndoorCameraD3D_Vec3::dtor(&v1->field_4); | |
127 } | |
128 | |
129 double GetPolygonMaxZ(struct RenderVertexSoft *pVertex, unsigned int uStripType); | |
130 double GetPolygonMinZ(struct RenderVertexSoft *pVertices, unsigned int uStripType); | |
131 struct IDirect3DTexture2 *LoadTextureAndGetHardwarePtr(char *Str1); | |
132 void Project(signed int x, signed int y, signed int z, int *a5, int *a6); | |
133 void Project(struct RenderVertexSoft *pVertices, unsigned int uNumVertices, char a4); | |
134 void _436CDC_mess_with_lightmap__clipflag_2(struct RenderVertexSoft *pInVertices, int uNumInVertices, struct RenderVertexSoft *pOutVertices, unsigned int *pOutNumVertices); | |
135 void _436F09_mess_with_lightmap__clipflag_4(struct RenderVertexSoft *pInVertices, int uNumInVertices, struct RenderVertexSoft *pOutVertices, unsigned int *pOutNumVertices); | |
136 int _437143(unsigned int uNumInVertices, struct RenderVertexSoft *pOutVertices, struct RenderVertexSoft *pInVertices, unsigned int *pOutNumVertices); | |
137 bool _4371C3(struct RenderVertexSoft *pVertices, unsigned int *pOutNumVertices, int _unused); | |
795 | 138 bool CalcPortalShape(struct RenderVertexSoft *a1, unsigned int *pOutNumVertices, struct RenderVertexSoft *pVertices, IndoorCameraD3D_Vec4 *a4, signed int uNumVertices, char a6, int _unused); |
0 | 139 char _437376(struct stru154 *thisa, struct RenderVertexSoft *a2, unsigned int *pOutNumVertices); |
140 void _4374E8_ProllyBuildFrustrum(); | |
141 void _437607(IndoorCameraD3D_Vec3 *a1, IndoorCameraD3D_Vec4 *a2); | |
142 void Vec3Transform(const IndoorCameraD3D_Vec3 *pVector, IndoorCameraD3D_Vec3 *pOut); | |
143 void CreateWorldMatrixAndSomeStuff(); | |
144 void MatrixMultiply(struct Matrix3x3_float_ *a1, struct Matrix3x3_float_ *a2, struct Matrix3x3_float_ *a3); | |
145 void PrepareAndDrawDebugOutline(struct BLVFace *pFace, unsigned int uDiffuse); | |
146 void debug_outline_sw(struct RenderVertexSoft *a2, unsigned int uNumVertices, unsigned int uDiffuse, float a5); | |
147 void debug_outline_d3d(const struct RenderVertexD3D3 *pLineVertices, unsigned int uNumLines, int uDiffuse, float z_stuff); | |
148 void do_draw_debug_line_sw(struct RenderVertexSoft *pLineBegin, unsigned int uStartDiffuse, struct RenderVertexSoft *pLineEnd, unsigned int uEndDiffuse, unsigned int uOutNumVertices, float z_stuff); | |
149 void do_draw_debug_line_d3d(const struct RenderVertexD3D3 *pLineBegin, unsigned int uDiffuseBegin, const RenderVertexD3D3 *pLineEnd, unsigned int uDiffuseEnd, float z_stuff); | |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
871
diff
changeset
|
150 //void sr_437D4A_draw_some_vertices(float x, float y, float z, unsigned int a5, char a6, float a7); |
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
871
diff
changeset
|
151 //void sr_438141_draw_list_0037C(); |
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
871
diff
changeset
|
152 //void sr_438240_draw_lits(); |
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
871
diff
changeset
|
153 //void sr_Reset_list_0037C(); |
0 | 154 bool is_face_faced_to_camera(struct BLVFace *pFace, struct RenderVertexSoft *a2); |
155 bool GetFacetOrientation(char polyType, struct Vec3_float_ *a2, struct Vec3_float_ *a3, struct Vec3_float_ *a4); | |
156 void ViewTransform(struct RenderVertexSoft *a1a, unsigned int uNumVertices); | |
157 bool IsCulled(struct BLVFace *pFace); | |
158 void ViewTransfrom_OffsetUV(struct RenderVertexSoft *pVertices, unsigned int uNumVertices, struct RenderVertexSoft *pOutVertices, struct stru320 *a5); | |
159 char ApplyViewTransform_TrueIfStillVisible(int x, int y, int z, signed int *pOutX, int *pOutZ, int *pOutY, char bDoNotShow); | |
871 | 160 float GetPickDepth(); |
1637 | 161 float GetShadingDistMist(); |
0 | 162 |
791 | 163 void DebugDrawPortal(struct BLVFace *pFace); |
164 | |
1458 | 165 //void ( ***vdestructor_ptr)(IndoorCameraD3D *, bool); |
0 | 166 IndoorCameraD3D_Vec3 field_4[3]; |
167 //IndoorCameraD3D_Vec3 field_14; | |
168 //IndoorCameraD3D_Vec3 field_24; | |
169 IndoorCameraD3D_Vec4 std__vector_000034_prolly_frustrum[6]; | |
170 float fov; | |
171 float screenCenterX; | |
172 float screenCenterY; | |
173 float fov_x; | |
174 float fov_y; | |
175 float inv_fov; | |
735 | 176 float blv_party_x; |
177 float blv_party_y; | |
178 float blv_party_z; | |
0 | 179 char field_E8[32]; |
180 float field_108; | |
735 | 181 float blv_party_x_2; |
182 float blv_party_y_2; | |
183 float blv_party_z_2; | |
0 | 184 char field_118[32]; |
185 float field_138; | |
186 char field_13C[44]; | |
187 float field_168; | |
188 char field_16C[44]; | |
189 float field_198; | |
190 char field_19C[44]; | |
191 float field_1C8; | |
192 char field_1CC[44]; | |
193 float field_1F8; | |
194 char field_1FC[44]; | |
195 float field_228; | |
196 char field_22C[44]; | |
197 float field_258; | |
198 char field_25C[44]; | |
199 float field_288; | |
200 char field_28C[44]; | |
201 float field_2B8; | |
202 float field_2BC; | |
203 float field_2C0; | |
204 float field_2C4; | |
205 char field_2C8[32]; | |
206 float field_2E8; | |
207 float field_2EC; | |
208 float field_2F0; | |
209 float field_2F4; | |
210 char field_2F8[32]; | |
211 float field_318; | |
212 float field_31C; | |
213 float field_320; | |
214 float field_324; | |
215 char field_328[32]; | |
216 float field_348; | |
217 float field_34C; | |
218 float field_350; | |
219 float field_354; | |
220 char field_358[32]; | |
221 float field_378; | |
222 IndoorCameraD3D_stru3 list_0037C[16384]; | |
223 unsigned int list_0037C_size; | |
224 IndoorCameraD3D_stru2 list_E0380[256]; | |
225 int list_E0380_size; | |
226 }; | |
227 #pragma pack(pop) |