Mercurial > mm7
annotate Outdoor_stuff.h @ 1617:8e3c6d7631f1
Player::GetRace cleaned up + removed a few unused vars
author | Grumpy7 |
---|---|
date | Sat, 14 Sep 2013 06:56:05 +0200 |
parents | 499761153844 |
children | 2c71fa8913d2 |
rev | line source |
---|---|
0 | 1 #pragma once |
1277 | 2 #include "VectorTypes.h" |
3 #include <array> | |
0 | 4 |
1277 | 5 struct ODMFace; |
0 | 6 |
7 | |
8 /* 141 */ | |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1344
diff
changeset
|
9 // stru148 |
0 | 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 | 12 { |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1344
diff
changeset
|
13 inline Polygon() |
265 | 14 { |
15 uNumVertices = 0; | |
16 } | |
17 | |
0 | 18 int _479295(); |
1338 | 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(); |
1410
38df78aba732
deleted stru220.h and stru220 (bezier terrain stuff)
Nomad
parents:
1391
diff
changeset
|
21 void _normalize_v_18(); |
1427 | 22 void Create_48607B(struct stru149 *a2); |
0 | 23 |
24 float field_0; | |
25 float field_4; | |
26 float field_8; | |
27 float field_C; | |
28 float field_10; | |
29 unsigned int uNumVertices; | |
30 Vec3_int_ v_18; | |
31 int field_24; | |
32 int sTextureDeltaU; | |
33 int sTextureDeltaV; | |
34 __int16 flags; | |
35 __int16 field_32; | |
36 int field_34; | |
37 struct stru149 *ptr_38; | |
1262 | 38 struct Texture *pTexture; |
0 | 39 struct Span *prolly_head; |
40 struct Span *prolly_tail; | |
41 int **ptr_48; | |
42 unsigned __int16 uTileBitmapID; | |
43 __int16 field_4E; | |
44 __int16 field_50; | |
45 __int16 field_52; | |
46 ODMFace *pODMFace; | |
638 | 47 char dimming_level; |
0 | 48 char field_59; |
49 char field_5A; | |
50 char field_5B; | |
638 | 51 char terrain_grid_z; |
52 char terrain_grid_x; | |
0 | 53 unsigned __int8 uBModelID; |
54 unsigned __int8 uBModelFaceID; | |
55 struct Edge *pEdgeList1[20]; | |
56 unsigned int uEdgeList1Size; | |
57 struct Edge *pEdgeList2[20]; | |
58 unsigned int uEdgeList2Size; | |
59 char field_108; | |
60 char field_109; | |
61 char field_10A; | |
62 char field_10B; | |
63 }; | |
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 | 66 |
67 /* 142 */ | |
68 #pragma pack(push, 1) | |
69 struct stru149 | |
70 { | |
1544 | 71 void _48616B_frustum_odm(int a2, int a3, int a4, int a5, int a6, int a7); |
72 void _48653D_frustum_blv(int a2, int a3, int a4, int a5, int a6, int a7); | |
73 void _48694B_frustum_sky(); | |
0 | 74 |
755 | 75 int field_0_party_dir_x; |
76 int field_4_party_dir_y; | |
1544 | 77 int field_8_party_dir_z; |
0 | 78 int field_C; |
79 int field_10; | |
80 int field_14; | |
81 int field_18; | |
82 int field_1C; | |
83 int field_20; | |
84 int field_24; | |
85 int field_28; | |
86 }; | |
87 #pragma pack(pop) | |
88 extern stru149 stru_8019C8; | |
89 | |
90 | |
91 | |
92 /* 143 */ | |
93 #pragma pack(push, 1) | |
94 struct Span | |
95 { | |
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 | 98 __int16 field_8; |
99 __int16 field_A; | |
100 __int16 field_C; | |
101 __int16 field_E; | |
102 float field_10; | |
103 float field_14; | |
104 }; | |
105 #pragma pack(pop) | |
106 | |
107 | |
108 | |
109 /* 144 */ | |
110 #pragma pack(push, 1) | |
111 struct Surf | |
112 { | |
113 float field_0; | |
114 float field_4; | |
115 float field_8; | |
116 float field_C; | |
117 float field_10; | |
118 Surf *pNext; | |
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 | 121 __int16 field_20; |
122 __int16 field_22; | |
123 }; | |
124 #pragma pack(pop) | |
125 extern Surf stru_80C980; | |
126 | |
127 | |
128 | |
129 | |
130 /* 145 */ | |
131 #pragma pack(push, 1) | |
132 struct Edge | |
133 { | |
134 float field_0; | |
135 float field_4; | |
136 int field_8; | |
137 Surf *pSurf; | |
138 Edge *pNext; | |
139 Edge *pPrev; | |
140 Edge *ptr_18; | |
141 float field_1C; | |
142 float field_20; | |
143 float field_24; | |
144 float field_28; | |
145 float field_2C; | |
146 float field_30; | |
147 }; | |
148 #pragma pack(pop) | |
149 extern Edge defaultEdge; // weak | |
150 | |
151 extern Edge stru_80C9A4; | |
152 extern Edge stru_80C9D8; | |
153 | |
154 | |
155 | |
156 | |
157 | |
158 | |
159 | |
160 |