annotate Outdoor_stuff.h @ 1391:cc9a3a24d61d

Moved stru11, stru12 and some SW Rendering stuff to the archives. stru148 -> struct Polygon
author Nomad
date Thu, 18 Jul 2013 14:42:54 +0200
parents 65379a50e4eb
children 38df78aba732 468f434a8d8a
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
1277
1803172dffd9 header stuff
Grumpy7
parents: 1262
diff changeset
2 #include "VectorTypes.h"
1803172dffd9 header stuff
Grumpy7
parents: 1262
diff changeset
3 #include <array>
0
Ritor1
parents:
diff changeset
4
1277
1803172dffd9 header stuff
Grumpy7
parents: 1262
diff changeset
5 struct ODMFace;
0
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7
Ritor1
parents:
diff changeset
8 /* 141 */
1391
cc9a3a24d61d Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents: 1344
diff changeset
9 // stru148
0
Ritor1
parents:
diff changeset
10 #pragma pack(push, 1)
1391
cc9a3a24d61d Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents: 1344
diff changeset
11 struct Polygon
0
Ritor1
parents:
diff changeset
12 {
1391
cc9a3a24d61d Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents: 1344
diff changeset
13 inline Polygon()
265
96bc024a5fed Render overflows
Nomad
parents: 0
diff changeset
14 {
96bc024a5fed Render overflows
Nomad
parents: 0
diff changeset
15 uNumVertices = 0;
96bc024a5fed Render overflows
Nomad
parents: 0
diff changeset
16 }
96bc024a5fed Render overflows
Nomad
parents: 0
diff changeset
17
0
Ritor1
parents:
diff changeset
18 int _479295();
1338
9749edd941c6 shading terrain
Ritor1
parents: 1277
diff changeset
19 void DrawBorderTiles();
1391
cc9a3a24d61d Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents: 1344
diff changeset
20 //void _48276F_sr();
0
Ritor1
parents:
diff changeset
21 void _486089_normalize_v_18();
Ritor1
parents:
diff changeset
22 void _48607B(struct stru149 *a2);
Ritor1
parents:
diff changeset
23
Ritor1
parents:
diff changeset
24 float field_0;
Ritor1
parents:
diff changeset
25 float field_4;
Ritor1
parents:
diff changeset
26 float field_8;
Ritor1
parents:
diff changeset
27 float field_C;
Ritor1
parents:
diff changeset
28 float field_10;
Ritor1
parents:
diff changeset
29 unsigned int uNumVertices;
Ritor1
parents:
diff changeset
30 Vec3_int_ v_18;
Ritor1
parents:
diff changeset
31 int field_24;
Ritor1
parents:
diff changeset
32 int sTextureDeltaU;
Ritor1
parents:
diff changeset
33 int sTextureDeltaV;
Ritor1
parents:
diff changeset
34 __int16 flags;
Ritor1
parents:
diff changeset
35 __int16 field_32;
Ritor1
parents:
diff changeset
36 int field_34;
Ritor1
parents:
diff changeset
37 struct stru149 *ptr_38;
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1206
diff changeset
38 struct Texture *pTexture;
0
Ritor1
parents:
diff changeset
39 struct Span *prolly_head;
Ritor1
parents:
diff changeset
40 struct Span *prolly_tail;
Ritor1
parents:
diff changeset
41 int **ptr_48;
Ritor1
parents:
diff changeset
42 unsigned __int16 uTileBitmapID;
Ritor1
parents:
diff changeset
43 __int16 field_4E;
Ritor1
parents:
diff changeset
44 __int16 field_50;
Ritor1
parents:
diff changeset
45 __int16 field_52;
Ritor1
parents:
diff changeset
46 ODMFace *pODMFace;
638
ccf8b4815a1f GetActorTintColor fixed
Nomad
parents: 265
diff changeset
47 char dimming_level;
0
Ritor1
parents:
diff changeset
48 char field_59;
Ritor1
parents:
diff changeset
49 char field_5A;
Ritor1
parents:
diff changeset
50 char field_5B;
638
ccf8b4815a1f GetActorTintColor fixed
Nomad
parents: 265
diff changeset
51 char terrain_grid_z;
ccf8b4815a1f GetActorTintColor fixed
Nomad
parents: 265
diff changeset
52 char terrain_grid_x;
0
Ritor1
parents:
diff changeset
53 unsigned __int8 uBModelID;
Ritor1
parents:
diff changeset
54 unsigned __int8 uBModelFaceID;
Ritor1
parents:
diff changeset
55 struct Edge *pEdgeList1[20];
Ritor1
parents:
diff changeset
56 unsigned int uEdgeList1Size;
Ritor1
parents:
diff changeset
57 struct Edge *pEdgeList2[20];
Ritor1
parents:
diff changeset
58 unsigned int uEdgeList2Size;
Ritor1
parents:
diff changeset
59 char field_108;
Ritor1
parents:
diff changeset
60 char field_109;
Ritor1
parents:
diff changeset
61 char field_10A;
Ritor1
parents:
diff changeset
62 char field_10B;
Ritor1
parents:
diff changeset
63 };
Ritor1
parents:
diff changeset
64 #pragma pack(pop)
1391
cc9a3a24d61d Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents: 1344
diff changeset
65 extern std::array<struct Polygon, 2000 + 18000> array_77EC08;
0
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67 /* 142 */
Ritor1
parents:
diff changeset
68 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
69 struct stru149
Ritor1
parents:
diff changeset
70 {
Ritor1
parents:
diff changeset
71 int _48616B(int a2, int a3, int a4, int a5, int a6, int a7);
Ritor1
parents:
diff changeset
72 int _48653D(int a2, int a3, int a4, int a5, int a6, int a7);
1344
65379a50e4eb Portals in indoor (continue)
Ritor1
parents: 1338
diff changeset
73 int sky_48694B();
0
Ritor1
parents:
diff changeset
74
755
e0914a9bc424 stru149 decompilation errors on some blv saves.
Nomad
parents: 638
diff changeset
75 int field_0_party_dir_x;
e0914a9bc424 stru149 decompilation errors on some blv saves.
Nomad
parents: 638
diff changeset
76 int field_4_party_dir_y;
0
Ritor1
parents:
diff changeset
77 int field_8;
Ritor1
parents:
diff changeset
78 int field_C;
Ritor1
parents:
diff changeset
79 int field_10;
Ritor1
parents:
diff changeset
80 int field_14;
Ritor1
parents:
diff changeset
81 int field_18;
Ritor1
parents:
diff changeset
82 int field_1C;
Ritor1
parents:
diff changeset
83 int field_20;
Ritor1
parents:
diff changeset
84 int field_24;
Ritor1
parents:
diff changeset
85 int field_28;
Ritor1
parents:
diff changeset
86 };
Ritor1
parents:
diff changeset
87 #pragma pack(pop)
Ritor1
parents:
diff changeset
88 extern stru149 stru_8019C8;
Ritor1
parents:
diff changeset
89
Ritor1
parents:
diff changeset
90
Ritor1
parents:
diff changeset
91
Ritor1
parents:
diff changeset
92 /* 143 */
Ritor1
parents:
diff changeset
93 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
94 struct Span
Ritor1
parents:
diff changeset
95 {
Ritor1
parents:
diff changeset
96 Span *pNext;
1391
cc9a3a24d61d Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents: 1344
diff changeset
97 struct Polygon *pParent;
0
Ritor1
parents:
diff changeset
98 __int16 field_8;
Ritor1
parents:
diff changeset
99 __int16 field_A;
Ritor1
parents:
diff changeset
100 __int16 field_C;
Ritor1
parents:
diff changeset
101 __int16 field_E;
Ritor1
parents:
diff changeset
102 float field_10;
Ritor1
parents:
diff changeset
103 float field_14;
Ritor1
parents:
diff changeset
104 };
Ritor1
parents:
diff changeset
105 #pragma pack(pop)
Ritor1
parents:
diff changeset
106
Ritor1
parents:
diff changeset
107
Ritor1
parents:
diff changeset
108
Ritor1
parents:
diff changeset
109 /* 144 */
Ritor1
parents:
diff changeset
110 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
111 struct Surf
Ritor1
parents:
diff changeset
112 {
Ritor1
parents:
diff changeset
113 float field_0;
Ritor1
parents:
diff changeset
114 float field_4;
Ritor1
parents:
diff changeset
115 float field_8;
Ritor1
parents:
diff changeset
116 float field_C;
Ritor1
parents:
diff changeset
117 float field_10;
Ritor1
parents:
diff changeset
118 Surf *pNext;
Ritor1
parents:
diff changeset
119 Surf *pPrev;
1391
cc9a3a24d61d Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents: 1344
diff changeset
120 struct Polygon *pParent;
0
Ritor1
parents:
diff changeset
121 __int16 field_20;
Ritor1
parents:
diff changeset
122 __int16 field_22;
Ritor1
parents:
diff changeset
123 };
Ritor1
parents:
diff changeset
124 #pragma pack(pop)
Ritor1
parents:
diff changeset
125 extern Surf stru_80C980;
Ritor1
parents:
diff changeset
126
Ritor1
parents:
diff changeset
127
Ritor1
parents:
diff changeset
128
Ritor1
parents:
diff changeset
129
Ritor1
parents:
diff changeset
130 /* 145 */
Ritor1
parents:
diff changeset
131 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
132 struct Edge
Ritor1
parents:
diff changeset
133 {
Ritor1
parents:
diff changeset
134 float field_0;
Ritor1
parents:
diff changeset
135 float field_4;
Ritor1
parents:
diff changeset
136 int field_8;
Ritor1
parents:
diff changeset
137 Surf *pSurf;
Ritor1
parents:
diff changeset
138 Edge *pNext;
Ritor1
parents:
diff changeset
139 Edge *pPrev;
Ritor1
parents:
diff changeset
140 Edge *ptr_18;
Ritor1
parents:
diff changeset
141 float field_1C;
Ritor1
parents:
diff changeset
142 float field_20;
Ritor1
parents:
diff changeset
143 float field_24;
Ritor1
parents:
diff changeset
144 float field_28;
Ritor1
parents:
diff changeset
145 float field_2C;
Ritor1
parents:
diff changeset
146 float field_30;
Ritor1
parents:
diff changeset
147 };
Ritor1
parents:
diff changeset
148 #pragma pack(pop)
Ritor1
parents:
diff changeset
149 extern Edge defaultEdge; // weak
Ritor1
parents:
diff changeset
150
Ritor1
parents:
diff changeset
151 extern Edge stru_80C9A4;
Ritor1
parents:
diff changeset
152 extern Edge stru_80C9D8;
Ritor1
parents:
diff changeset
153
Ritor1
parents:
diff changeset
154
Ritor1
parents:
diff changeset
155
Ritor1
parents:
diff changeset
156
Ritor1
parents:
diff changeset
157
Ritor1
parents:
diff changeset
158
Ritor1
parents:
diff changeset
159
Ritor1
parents:
diff changeset
160