comparison IndoorCameraD3D.h @ 0:8b8875f5b359

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