annotate IndoorCameraD3D.h @ 30:8aa7e4a303c9

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