annotate stru9.cpp @ 110:430786d916d6

6.11.12 SaveLoad
author Ritor1
date Tue, 06 Nov 2012 17:30:24 +0600
parents fdacbc653945
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #include "stru9.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "IndoorCameraD3D.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 #include "mm7_data.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 //----- (00498377) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 bool stru9::_498377(struct RenderVertexSoft *a1, unsigned int uNumVertices, struct IndoorCameraD3D_Vec4 *a3, struct RenderVertexSoft *pVertices, unsigned int *pOutNumVertices)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 bool result; // eax@7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 unsigned int *v7; // ebx@7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 char *v8; // esi@8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 RenderVertexSoft *v9; // ecx@9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 double v10; // st7@12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 double v11; // st6@12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 RenderVertexSoft *v12; // esi@13
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 int v13; // ecx@25
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 VertexBuffer *v14; // edx@26
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 char *v15; // eax@26
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 unsigned int i; // ecx@26
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 bool v17; // [sp+0h] [bp-28h]@9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 char *v18; // [sp+10h] [bp-18h]@8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 RenderVertexSoft *v19; // [sp+14h] [bp-14h]@0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 RenderVertexSoft *v20; // [sp+18h] [bp-10h]@0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 signed int v21; // [sp+1Ch] [bp-Ch]@7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 RenderVertexSoft *a2; // [sp+20h] [bp-8h]@8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 stru9 *thisa; // [sp+24h] [bp-4h]@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 signed int a3a; // [sp+38h] [bp+10h]@12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 int a3b; // [sp+38h] [bp+10h]@25
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
32 __debugbreak();
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
33
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 thisa = this;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 static RenderVertexSoft static_AE3FB4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 static bool __init_flag1 = false;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 if (!__init_flag1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 __init_flag1 = true;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 static_AE3FB4.flt_2C = 0.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 static stru312 static_AE3FA4; // idb
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 static bool __init_flag2 = false;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 if (!__init_flag2)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 __init_flag2 = true;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 //stru312::stru312(&static_AE3FA4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 static VertexBuffer static_AE33A0; // idb
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 static bool __init_flag3 = false;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 if (!__init_flag3)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 __init_flag3 = true;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 //VertexBuffer::VertexBuffer(&static_AE33A0);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 result = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 v7 = pOutNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 v21 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 if ( (signed int)uNumVertices <= 0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 goto LABEL_32;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 a2 = a1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 v8 = (char *)&a3->y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 v18 = (char *)&a3->y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 do
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 v17 = result + 1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 v9 = &a1[(result + 1) % (signed int)uNumVertices];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 if ( a2->vWorldPosition.x != v9->vWorldPosition.x
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 || a2->vWorldPosition.y != v9->vWorldPosition.y
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 || a2->vWorldPosition.z != v9->vWorldPosition.z )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 v10 = *((float *)v8 + 1);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 v11 = *(float *)v8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 ++v21;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 result = 0;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
83 static_AE3FA4.x = *((float *)v8 - 1);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 static_AE33A0.uNumVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 a3a = 0;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
86 static_AE3FA4.y = v11;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
87 static_AE3FA4.z = v10;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 if ( (signed int)*v7 <= 0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 goto LABEL_32;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 do
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 v12 = &pVertices[result];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 if ( result )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 if ( _4989E1(v20, &pVertices[result], a2, &static_AE3FA4)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 && _498774(v20, v12, a2, &static_AE3FA4, &static_AE3FB4) )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 AddVertex(&static_AE33A0, &static_AE3FB4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 v19 = &pVertices[result];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 v20 = v12;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
104 if ( AreVectorsCollinear(v12, a2, &static_AE3FA4) )
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 AddVertex(&static_AE33A0, v12);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 v7 = pOutNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 result = a3a++ + 1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 while ( a3a < (signed int)*pOutNumVertices );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 if ( !static_AE33A0.uNumVertices )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 goto LABEL_32;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 if ( _4989E1(v12, v19, a2, &static_AE3FA4)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 && _498774(v12, v19, a2, &static_AE3FA4, &static_AE3FB4) )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 AddVertex(&static_AE33A0, &static_AE3FB4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 v13 = static_AE33A0.uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 a3b = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 if ( static_AE33A0.uNumVertices > 0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 v14 = &static_AE33A0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 v15 = (char *)&pVertices->vWorldPosition.y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 for ( i = (char *)&static_AE33A0.pVertices[0].vWorldPosition.y - (char *)pVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 ;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 i = (char *)&static_AE33A0.pVertices[0].vWorldPosition.y - (char *)pVertices )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 ++a3b;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 *((int *)v15 - 1) = *(unsigned int *)(&v14->pVertices[0].vWorldPosition.x);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 v14 = (VertexBuffer *)((char *)v14 + 48);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 *(float *)v15 = *(float *)&v15[(char *)&static_AE33A0 - (char *)pVertices];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 *((float *)v15 + 1) = *(float *)&v15[i];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 *((float *)v15 + 8) = *(float *)&v15[(char *)&static_AE33A0.pVertices[0].flt_20 - (char *)pVertices];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 *((float *)v15 + 9) = *(float *)&v15[(char *)&static_AE33A0.pVertices[0].u - (char *)pVertices];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 v13 = static_AE33A0.uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 v15 += 48;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 if ( a3b >= static_AE33A0.uNumVertices )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 break;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 v7 = pOutNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 v8 = v18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
140 *pOutNumVertices = v13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 result = v17;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 ++a2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 v8 += 24;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 v18 = v8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
147 while ( v17 < (signed int)uNumVertices );
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 if ( v21 < 3 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 LABEL_32:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 *v7 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 return 1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 // AE3FE4: using guessed type char static_init_flag__AE3FB4_bit1__AE3FA4_bit2__AE33A0_bit3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 //----- (004985FB) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 bool stru9::_4985FB(struct RenderVertexSoft *a1, signed int a2, struct RenderVertexSoft *a3, unsigned int *pOutNumVertices, struct Vec3_float_ *a5, float a6, char *a7, int unused)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 RenderVertexSoft *v9; // ecx@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 Vec3_float_ *v10; // esi@1
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
160 //char *v11; // ebx@1
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 RenderVertexSoft *v12; // edi@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 double v13; // st7@1
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
163 //bool result; // eax@4
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 signed int v15; // edx@9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 RenderVertexSoft *v16; // ecx@9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 double v17; // st7@9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167 double v18; // st6@12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168 signed int v19; // [sp+Ch] [bp-Ch]@7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169 float v20; // [sp+10h] [bp-8h]@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170 bool v21; // [sp+14h] [bp-4h]@2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172 v9 = a1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 v10 = a5;
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
174 //v11 = (char *)&a1->vWorldPosition.z;
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
175 auto v11 = a1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
176 v12 = a3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
177 v13 = a1->vWorldPosition.y * a5->y + a5->x * a1->vWorldPosition.x + a1->vWorldPosition.z * a5->z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
178 v20 = v13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
179 v21 = v13 >= a6;
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
180
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
181 *pOutNumVertices = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
182 if ( a2 <= 0 )
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
183 return false;
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
184 v19 = 1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
185 while ( 1 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
186 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
187 if ( v21 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
188 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
189 ++a3;
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
190 memcpy(v12, v11, sizeof(RenderVertexSoft));
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
191 ++*pOutNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
192 v10 = a5;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
193 v12 = a3;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
194 v9 = a1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
195 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
196 v15 = 0;
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
197 v16 = &v9[v19 % a2];
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
198 v17 = v16->vWorldPosition.z * v10->z + v16->vWorldPosition.y * v10->y + v10->x * v16->vWorldPosition.x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
199 if ( v17 >= a6 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
200 v15 = 1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
201 if ( v21 != v15 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
202 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
203 v18 = (a6 - v20) / (v17 - v20);
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
204 v12->vWorldPosition.x = (v16->vWorldPosition.x - v11->vWorldPosition.x) * v18 + v11->vWorldPosition.x;
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
205 v12->vWorldPosition.y = (v16->vWorldPosition.y - v11->vWorldPosition.y) * v18 + v11->vWorldPosition.y;
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
206 v12->vWorldPosition.z = (v16->vWorldPosition.z - v11->vWorldPosition.z) * v18 + v11->vWorldPosition.z;
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
207 v12->u = (v16->u - v11->u) * v18 + v11->u;
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
208 v12->v = (v16->v - v11->v) * v18 + v11->v;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
209 ++v12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
210 a3 = v12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
211 ++*pOutNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
212 *a7 = 1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
213 }
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
214
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
215 v11++;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
216 v21 = v15;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
217 v20 = v17;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
218 if ( v19 >= a2 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
219 break;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
220 v9 = a1;
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
221 v19++;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
222 }
52
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
223
0f4ed4f0f472 BLV minimap: 1/3
Nomad
parents: 0
diff changeset
224 return *pOutNumVertices >= 3;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
225 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
226
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
227 //----- (00498737) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
228 void stru9::AddVertex(struct VertexBuffer *pVertexBuffer, struct RenderVertexSoft *pVertex)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
229 {
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
230 __debugbreak();
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
231 RenderVertexSoft *v3; // eax@1
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
232
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
233 v3 = &pVertexBuffer->pVertices[pVertexBuffer->uNumVertices];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
234 v3->vWorldPosition.x = pVertex->vWorldPosition.x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
235 v3->vWorldPosition.y = pVertex->vWorldPosition.y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
236 v3->vWorldPosition.z = pVertex->vWorldPosition.z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
237 v3->u = pVertex->u;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
238 v3->v = pVertex->v;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
239 ++pVertexBuffer->uNumVertices;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
240 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
241
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
242 //----- (00498774) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
243 bool stru9::_498774(struct RenderVertexSoft *a1, struct RenderVertexSoft *a2, struct RenderVertexSoft *a3, struct stru312 *a4, struct RenderVertexSoft *a5)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
244 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
245 RenderVertexSoft *v6; // ecx@5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
246 bool result; // eax@5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
247 double v8; // st7@5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
248 __int16 v9; // fps@5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
249 double v10; // st7@6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
250 double v11; // st6@8
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
251 double v12; // st6@18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
252 char v13; // c0@24
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
253 char v14; // c2@24
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
254 char v15; // c3@24
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
255 float a1a; // [sp+10h] [bp+8h]@5
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
256
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
257 __debugbreak();
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
258
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
259 static stru312 static_AE3388;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
260 static stru312 static_AE3378;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
261
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
262 v6 = a1;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
263 static_AE3378.x = a1->vWorldPosition.x - a3->vWorldPosition.x;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
264 static_AE3378.y = a1->vWorldPosition.y - a3->vWorldPosition.y;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
265 HIWORD(result) = HIWORD(a4);
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
266 static_AE3378.z = a1->vWorldPosition.z - a3->vWorldPosition.z;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
267 static_AE3388.x = a2->vWorldPosition.x - a1->vWorldPosition.x;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
268 static_AE3388.y = a2->vWorldPosition.y - a1->vWorldPosition.y;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
269 static_AE3388.z = a2->vWorldPosition.z - a1->vWorldPosition.z;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
270 a1a = static_AE3388.x * a4->x + static_AE3388.z * a4->z + static_AE3388.y * a4->y;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
271 v8 = static_AE3378.x * a4->x + static_AE3378.z * a4->z + static_AE3378.y * a4->y;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
272 //UNDEF(v9);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
273 if ( a1a != 0.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
274 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
275 v10 = -(v8 / a1a);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
276 if ( a1a <= 0.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
277 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
278 if ( v10 <= 0.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
279 v12 = 0.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
280 else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
281 v12 = v10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
282 if ( v12 <= 1.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
283 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
284 if ( v10 <= 0.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
285 v10 = (float)0.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
286 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
287 else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
288 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
289 v10 = 1.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
290 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
291 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
292 else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
293 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
294 if ( v10 >= 1.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
295 v11 = 1.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
296 else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
297 v11 = v10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
298 if ( v11 >= 0.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
299 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
300 if ( v10 >= 1.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
301 v10 = (float)1.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
302 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
303 else
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
304 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
305 v10 = 0.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
306 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
307 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
308 result = (bool)a5;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
309 a5->vWorldPosition.x = (a2->vWorldPosition.x - v6->vWorldPosition.x) * v10 + v6->vWorldPosition.x;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
310 a5->vWorldPosition.y = (a2->vWorldPosition.y - v6->vWorldPosition.y) * v10 + v6->vWorldPosition.y;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
311 a5->vWorldPosition.z = (a2->vWorldPosition.z - v6->vWorldPosition.z) * v10 + v6->vWorldPosition.z;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
312 a5->u = (a2->u - v6->u) * v10 + v6->u;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
313 a5->v = (a2->v - v6->v) * v10 + v6->v;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
314 goto LABEL_15;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
315 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
316 v13 = v8 < 0.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
317 v14 = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
318 v15 = v8 == 0.0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
319 BYTE1(result) = HIBYTE(v9);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
320 if ( v8 < 0.0 )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
321 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
322 LABEL_15:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
323 LOBYTE(result) = 1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
324 return result;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
325 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
326 LOBYTE(result) = 0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
327 return result;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
328 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
329 // AE3398: using guessed type char static_init_flag__AE3388_bit1__AE3378_bit2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
330
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
331 //----- (0049895A) --------------------------------------------------------
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
332 bool stru9::AreVectorsCollinear(struct RenderVertexSoft *a1, struct RenderVertexSoft *a2, struct stru312 *a3)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
333 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
334 static stru312 static_F942A0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
335
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
336 static_F942A0.x = a1->vWorldPosition.x - a2->vWorldPosition.x;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
337 static_F942A0.y = a1->vWorldPosition.y - a2->vWorldPosition.y;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
338 static_F942A0.z = a1->vWorldPosition.z - a2->vWorldPosition.z;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
339
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
340 static float flt_F942B4 = static_F942A0.z * a3->z + static_F942A0.y * a3->y + static_F942A0.x * a3->x;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
341 if (flt_F942B4 >= 0)
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
342 return true;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
343 return false;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
344 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
345
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
346
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
347 //----- (004989E1) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
348 bool stru9::_4989E1(struct RenderVertexSoft *a1, struct RenderVertexSoft *a2, struct RenderVertexSoft *a3, struct stru312 *a4)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
349 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
350 bool r1;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
351 bool r2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
352
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
353 r1 = AreVectorsCollinear(a1, a3, a4);
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
354 r2 = AreVectorsCollinear(a2, a3, a4);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
355 return !r1 && r2 == 1 ||
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
356 r1 == 1 && !r2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
357 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
358
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
359 //----- (004980B9) --------------------------------------------------------
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
360 bool stru9::_4980B9(RenderVertexSoft *a1, unsigned int uNumVertices, float a3, float a4, float a5, RenderVertexSoft *pOutVertices, unsigned int *pOutNumVertices)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
361 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
362 RenderVertexSoft *v12; // ecx@9
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
363 double v13; // st7@12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
364 double v14; // st6@12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
365 double v15; // st5@12
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
366 signed int v25; // [sp+18h] [bp-Ch]@7
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
367
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
368 static RenderVertexSoft stru_AE4BFC;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
369 static stru312 static_sub_4980B9_stru_AE4BEC; // idb
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
370 static VertexBuffer static_sub_4980B9_stru_AE3FE8; // idb
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
371
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
372 v25 = 0;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
373 if (uNumVertices <= 0)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
374 {
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
375 *pOutNumVertices = 0;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
376 return true;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
377 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
378
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
379 for (uint i = 0; i < uNumVertices; ++i)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
380 {
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
381 v12 = &a1[(i + 1) % uNumVertices];
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
382 if (a1[i].vWorldPosition.x != v12->vWorldPosition.x ||
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
383 a1[i].vWorldPosition.y != v12->vWorldPosition.y ||
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
384 a1[i].vWorldPosition.z!= v12->vWorldPosition.z)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
385 {
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
386 v13 = v12->vWorldPosition.x - a1[i].vWorldPosition.x;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
387 v14 = v12->vWorldPosition.y - a1[i].vWorldPosition.y;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
388 v15 = v12->vWorldPosition.z - a1[i].vWorldPosition.z;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
389 ++v25;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
390
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
391 static_sub_4980B9_stru_AE3FE8.uNumVertices = 0;
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
392 static_sub_4980B9_stru_AE4BEC.x = a4 * v15 - v14 * a5;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
393 static_sub_4980B9_stru_AE4BEC.y = v13 * a5 - v15 * a3;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
394 static_sub_4980B9_stru_AE4BEC.z = v14 * a3 - v13 * a4;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
395 if (*pOutNumVertices == 0)
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
396 return true;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
397
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
398 for (uint j = 0; j < *pOutNumVertices; ++j)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
399 {
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
400 if (j)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
401 {
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
402 if (_4989E1(&pOutVertices[j - 1], &pOutVertices[j], &a1[i], &static_sub_4980B9_stru_AE4BEC) &&
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
403 _498774(&pOutVertices[j - 1], &pOutVertices[j], &a1[i], &static_sub_4980B9_stru_AE4BEC, &stru_AE4BFC))
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
404 AddVertex(&static_sub_4980B9_stru_AE3FE8, &stru_AE4BFC);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
405 }
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
406
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
407 if (AreVectorsCollinear(&pOutVertices[j], &a1[i], &static_sub_4980B9_stru_AE4BEC))
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
408 AddVertex(&static_sub_4980B9_stru_AE3FE8, &pOutVertices[j]);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
409 }
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
410
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
411 if (!static_sub_4980B9_stru_AE3FE8.uNumVertices)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
412 {
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
413 *pOutNumVertices = 0;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
414 return true;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
415 }
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
416 if (_4989E1(&pOutVertices[*pOutNumVertices - 1], &pOutVertices[0], &a1[i], &static_sub_4980B9_stru_AE4BEC) &&
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
417 _498774(&pOutVertices[*pOutNumVertices - 1], &pOutVertices[0], &a1[i], &static_sub_4980B9_stru_AE4BEC, &stru_AE4BFC) )
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
418 AddVertex(&static_sub_4980B9_stru_AE3FE8, &stru_AE4BFC);
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
419
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
420 for (uint j = 0; j < static_sub_4980B9_stru_AE3FE8.uNumVertices; ++j)
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
421 {
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
422 pOutVertices[j].vWorldPosition.y = static_sub_4980B9_stru_AE3FE8.pVertices[j].vWorldPosition.x;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
423 pOutVertices[j].vWorldPosition.y = static_sub_4980B9_stru_AE3FE8.pVertices[j].vWorldPosition.y;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
424 pOutVertices[j].vWorldPosition.z = static_sub_4980B9_stru_AE3FE8.pVertices[j].vWorldPosition.z;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
425 pOutVertices[j].u = static_sub_4980B9_stru_AE3FE8.pVertices[j].u;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
426 pOutVertices[j].v = static_sub_4980B9_stru_AE3FE8.pVertices[j].v;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
427 }
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
428 *pOutNumVertices = static_sub_4980B9_stru_AE3FE8.uNumVertices;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
429 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
430 }
68
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
431
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
432 if (v25 < 3)
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
433 *pOutNumVertices = 0;
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
434
fdacbc653945 BLV render: first image
Nomad
parents: 59
diff changeset
435 return true;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
436 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
437 // AE4C2C: using guessed type char static_sub_4980B9_byte_AE4C2C_init_flag;