annotate Texture.h @ 1355:af2fc30d765f

Player::CanAct, Player::CanSteal shortened a bit
author Grumpy7
date Sat, 13 Jul 2013 13:14:05 +0200
parents 0aeac0b9ca30
children a519a6a412d0
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include <stdio.h>
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 1119
diff changeset
3 #include<array>
0
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7 /* 194 */
Ritor1
parents:
diff changeset
8 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
9 struct RGBTexture
Ritor1
parents:
diff changeset
10 {
Ritor1
parents:
diff changeset
11 RGBTexture();
Ritor1
parents:
diff changeset
12 void Release();
Ritor1
parents:
diff changeset
13 int _40E55E(const char *Filename, unsigned int a3);
Ritor1
parents:
diff changeset
14 unsigned int LoadFromFILE(FILE *pFile, unsigned int mode, unsigned int bCloseFile);
Ritor1
parents:
diff changeset
15 int DecodePCX(char *pPcx, unsigned __int16 *pOutPixels, unsigned int uNumPixels);
Ritor1
parents:
diff changeset
16 int Load(const char *pContainer, int mode);
Ritor1
parents:
diff changeset
17 int Reload(const char *pContainer);
Ritor1
parents:
diff changeset
18
Ritor1
parents:
diff changeset
19 char pName[16];
Ritor1
parents:
diff changeset
20 unsigned int uNumPixels;
Ritor1
parents:
diff changeset
21 unsigned __int16 uWidth;
Ritor1
parents:
diff changeset
22 unsigned __int16 uHeight;
Ritor1
parents:
diff changeset
23 __int16 field_18;
Ritor1
parents:
diff changeset
24 __int16 field_1A;
Ritor1
parents:
diff changeset
25 __int16 field_1C;
Ritor1
parents:
diff changeset
26 __int16 field_1E;
Ritor1
parents:
diff changeset
27 __int16 field_20;
Ritor1
parents:
diff changeset
28 __int16 field_22;
Ritor1
parents:
diff changeset
29 unsigned __int16 *pPixels;
Ritor1
parents:
diff changeset
30 };
Ritor1
parents:
diff changeset
31 #pragma pack(pop)
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33
Ritor1
parents:
diff changeset
34
Ritor1
parents:
diff changeset
35 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
36 struct Texture
Ritor1
parents:
diff changeset
37 {
Ritor1
parents:
diff changeset
38 Texture();
Ritor1
parents:
diff changeset
39 void Release();
Ritor1
parents:
diff changeset
40 void *UnzipPalette();
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42 char pName[16];
Ritor1
parents:
diff changeset
43 unsigned int uSizeOfMaxLevelOfDetail;
Ritor1
parents:
diff changeset
44 unsigned int uTextureSize;
Ritor1
parents:
diff changeset
45 unsigned __int16 uTextureWidth;
Ritor1
parents:
diff changeset
46 unsigned __int16 uTextureHeight;
Ritor1
parents:
diff changeset
47 __int16 uWidthLn2;
Ritor1
parents:
diff changeset
48 __int16 uHeightLn2;
Ritor1
parents:
diff changeset
49 __int16 uWidthMinus1;
Ritor1
parents:
diff changeset
50 __int16 uHeightMinus1;
Ritor1
parents:
diff changeset
51 short palette_id1;
Ritor1
parents:
diff changeset
52 short palette_id2;
Ritor1
parents:
diff changeset
53 unsigned int uDecompressedSize;
Ritor1
parents:
diff changeset
54 int pBits;
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
55 unsigned __int8 *pLevelOfDetail0_prolly_alpha_mask;
0
Ritor1
parents:
diff changeset
56 unsigned __int8 *pLevelOfDetail1;
Ritor1
parents:
diff changeset
57 unsigned __int8 *pLevelOfDetail2;
Ritor1
parents:
diff changeset
58 unsigned __int8 *pLevelOfDetail3;
Ritor1
parents:
diff changeset
59 unsigned __int16 *pPalette16;
Ritor1
parents:
diff changeset
60 unsigned __int8 *pPalette24;
Ritor1
parents:
diff changeset
61 };
Ritor1
parents:
diff changeset
62 #pragma pack(pop)
Ritor1
parents:
diff changeset
63
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67
Ritor1
parents:
diff changeset
68
Ritor1
parents:
diff changeset
69
Ritor1
parents:
diff changeset
70
Ritor1
parents:
diff changeset
71
Ritor1
parents:
diff changeset
72
Ritor1
parents:
diff changeset
73
Ritor1
parents:
diff changeset
74
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76
Ritor1
parents:
diff changeset
77
Ritor1
parents:
diff changeset
78
Ritor1
parents:
diff changeset
79
Ritor1
parents:
diff changeset
80 /* 323 */
Ritor1
parents:
diff changeset
81 enum TEXTURE_FRAME_TABLE_FLAGS
Ritor1
parents:
diff changeset
82 {
Ritor1
parents:
diff changeset
83 TEXTURE_FRAME_TABLE_MORE_FRAMES = 0x1,
Ritor1
parents:
diff changeset
84 TEXTURE_FRAME_TABLE_FIRST = 0x2,
Ritor1
parents:
diff changeset
85 };
Ritor1
parents:
diff changeset
86
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88
Ritor1
parents:
diff changeset
89 /* 41 */
Ritor1
parents:
diff changeset
90 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
91 struct TextureFrame
Ritor1
parents:
diff changeset
92 {
Ritor1
parents:
diff changeset
93 char pTextureName[12];
Ritor1
parents:
diff changeset
94 __int16 uTextureID;
Ritor1
parents:
diff changeset
95 __int16 uAnimTime;
Ritor1
parents:
diff changeset
96 __int16 uAnimLength;
Ritor1
parents:
diff changeset
97 __int16 uFlags;
Ritor1
parents:
diff changeset
98 };
Ritor1
parents:
diff changeset
99 #pragma pack(pop)
Ritor1
parents:
diff changeset
100
Ritor1
parents:
diff changeset
101 /* 40 */
Ritor1
parents:
diff changeset
102 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
103 struct TextureFrameTable
Ritor1
parents:
diff changeset
104 {
Ritor1
parents:
diff changeset
105 //----- (0044D4C9) --------------------------------------------------------
Ritor1
parents:
diff changeset
106 inline TextureFrameTable()
Ritor1
parents:
diff changeset
107 {
Ritor1
parents:
diff changeset
108 pTextures = 0;
711
a5e587c8e30e some cleaning
Gloval
parents: 688
diff changeset
109 sNumTextures = 0;
0
Ritor1
parents:
diff changeset
110 }
Ritor1
parents:
diff changeset
111 int FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
112 void ToFile();
Ritor1
parents:
diff changeset
113 void FromFile(void *pSerialized);
711
a5e587c8e30e some cleaning
Gloval
parents: 688
diff changeset
114 void LoadAnimationSequenceAndPalettes(signed int uIconID);
0
Ritor1
parents:
diff changeset
115 unsigned int GetFrameTexture(int uFrameID, signed int a3);
Ritor1
parents:
diff changeset
116 unsigned int FindTextureByName(const char *Str2);
Ritor1
parents:
diff changeset
117
Ritor1
parents:
diff changeset
118
711
a5e587c8e30e some cleaning
Gloval
parents: 688
diff changeset
119 signed int sNumTextures;
0
Ritor1
parents:
diff changeset
120 struct TextureFrame *pTextures;
Ritor1
parents:
diff changeset
121 };
Ritor1
parents:
diff changeset
122 #pragma pack(pop)
Ritor1
parents:
diff changeset
123
Ritor1
parents:
diff changeset
124 extern struct TextureFrameTable *pTextureFrameTable;
Ritor1
parents:
diff changeset
125
Ritor1
parents:
diff changeset
126
Ritor1
parents:
diff changeset
127
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 1119
diff changeset
128 extern std::array<struct RGBTexture, 45> pSavegameThumbnails;
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
129 extern std::array<struct Texture *, 2> pTexture_LloydBeacons;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
130 extern struct Texture *pTexture_50635C;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
131 extern struct Texture *pTexture_506368;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
132 extern struct Texture *pTexture_50636C;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
133 extern struct Texture *pTexture_506370;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
134 extern struct Texture *pTexture_506374;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
135 extern struct Texture *pTexture_506378;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
136 extern struct Texture *pTexture_50637C;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
137 extern struct Texture *pTexture_506380;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
138 extern struct Texture *pTexture_506384;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
139 extern struct Texture *pTexture_506388;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
140 extern struct Texture *pTexture_50638C;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
141 extern struct Texture *pTexture_506390;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
142 extern struct Texture *pTexture_506394;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
143 extern struct Texture *pTex_tab_an_7a__zoot_off;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
144 extern struct Texture *pTex_tab_an_6a__zoom_off;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
145 extern struct Texture *pTex_tab_an_7b__zoot_on;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
146 extern struct Texture *pTex_tab_an_6b__zoom_on;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
147 extern std::array<struct Texture *, 6> pTexture_TownPortalIcons; // [0]Harmonale, [1]Pierpont, [2]Nighon, [3]Evenmorn Island, [4]Celestia, [5]The Pit
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
148
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
149 extern std::array<struct Texture *, 12> dword_5063D8;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
150 extern std::array<struct Texture *, 12> dword_506408;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
151 extern struct Texture *pTexture_50643C; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
152 extern struct Texture *ptr_506440;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
153 extern struct Texture *pTexture_506444;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
154 extern struct Texture *pTexture_506448; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
155 extern std::array<std::array<struct Texture *, 2>, 9> pTextures_tabs;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
156 extern struct Texture *pTexture_mapbordr; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
157 extern struct Texture *pTexture_pagemask; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
158 extern std::array<struct Texture *, 9> pSpellBookPagesTextr;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
159 extern struct Texture *pSpellBookPagesTextr_9;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
160 extern struct Texture *pSpellBookPagesTextr_10;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
161 extern struct Texture *pSpellBookPagesTextr_11;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
162 extern struct Texture *pSpellBookPagesTextr_12;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
163 extern struct Texture *pSpellBookPagesTextr_13;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
164 extern struct Texture *pTexture_AutonotesBook;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
165 extern struct Texture *pTexture_CurrentBook;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
166 extern struct Texture *pTex_moon_new;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
167 extern struct Texture *pTex_moon_4;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
168 extern struct Texture *pTex_moon_2;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
169 extern struct Texture *pTex_moon_2_2;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
170 extern struct Texture *pTex_moon_ful;
0
Ritor1
parents:
diff changeset
171
Ritor1
parents:
diff changeset
172
Ritor1
parents:
diff changeset
173
Ritor1
parents:
diff changeset
174 extern RGBTexture stru_506E40; // weak
Ritor1
parents:
diff changeset
175 extern RGBTexture pTexture_PCX;
Ritor1
parents:
diff changeset
176
Ritor1
parents:
diff changeset
177
Ritor1
parents:
diff changeset
178 extern int uTextureID_RestUI_restb4; // weak
Ritor1
parents:
diff changeset
179 extern int uTextureID_RestUI_restexit; // weak
Ritor1
parents:
diff changeset
180 extern int uTextureID_RestUI_restb3; // weak
Ritor1
parents:
diff changeset
181 extern int uTextureID_RestUI_restb1; // weak
Ritor1
parents:
diff changeset
182 extern int uTextureID_RestUI_restb2; // weak
Ritor1
parents:
diff changeset
183 extern int uTextureID_RestUI_restmain; // weak
Ritor1
parents:
diff changeset
184 extern unsigned int uTextureID_Leather;
Ritor1
parents:
diff changeset
185 extern int uTextureID_ar_dn_dn; // weak
Ritor1
parents:
diff changeset
186 extern int uTextureID_ar_dn_up; // weak
Ritor1
parents:
diff changeset
187 extern int uTextureID_ar_up_dn; // weak
Ritor1
parents:
diff changeset
188 extern int uTextureID_ar_up_up; // weak
Ritor1
parents:
diff changeset
189
Ritor1
parents:
diff changeset
190
Ritor1
parents:
diff changeset
191 extern int uTextureID_507698; // weak
Ritor1
parents:
diff changeset
192 extern int uTextureID_50769C; // weak
Ritor1
parents:
diff changeset
193 extern int uTextureID_5076A0; // weak
Ritor1
parents:
diff changeset
194 extern int uTextureID_5076A4; // weak
Ritor1
parents:
diff changeset
195 extern int uTextureID_5076A8; // weak
Ritor1
parents:
diff changeset
196 extern int uTextureID_5076AC; // weak
Ritor1
parents:
diff changeset
197 extern int uTextureID_5076B0; // weak
Ritor1
parents:
diff changeset
198 extern int uTextureID_5076B4; // weak
Ritor1
parents:
diff changeset
199 extern int uTextureID_Parchment; // weak
Ritor1
parents:
diff changeset
200 extern unsigned int uTextureID_mhp_yel;
Ritor1
parents:
diff changeset
201 extern unsigned int uTextureID_mhp_red;
Ritor1
parents:
diff changeset
202 extern unsigned int uTextureID_mhp_grn;
Ritor1
parents:
diff changeset
203 extern unsigned int uTextureID_mhp_capr;
Ritor1
parents:
diff changeset
204 extern unsigned int uTextureID_mhp_capl;
Ritor1
parents:
diff changeset
205 extern unsigned int uTextureID_mhp_bd;
Ritor1
parents:
diff changeset
206 extern unsigned int uTextureID_BUTTDESC2;
Ritor1
parents:
diff changeset
207 extern unsigned int uTextureID_x_x_u;
Ritor1
parents:
diff changeset
208 extern unsigned int uTextureID_BUTTMAKE2;
Ritor1
parents:
diff changeset
209 extern unsigned int uTextureID_BUTTMAKE;
Ritor1
parents:
diff changeset
210 extern unsigned int uTextureID_BUTTYES2;
Ritor1
parents:
diff changeset
211 extern unsigned int uTextureID_x_ok_u;
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
212 extern std::array<struct Texture *, 22> pPlayerPortraits;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
213 extern std::array<struct Texture *, 9> pTexture_IC_KNIGHT;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
214 extern struct Texture *pTexture_MAKESKY;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
215 extern struct Texture *pTexture_MAKETOP;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
216 extern std::array<struct Texture *, 20> pTextures_arrowr;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
217 extern std::array<struct Texture *, 20> pTextures_arrowl;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
218 extern struct Texture *pTexture_presleft;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
219 extern struct Texture *pTexture_pressrigh;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
220 extern struct Texture *pTexture_buttminu;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
221 extern struct Texture *pTexture_buttplus;
362
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
222 extern unsigned int uTextureID_Quit1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
223 extern unsigned int uTextureID_Resume1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
224 extern unsigned int uTextureID_Controls1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
225 extern unsigned int uTextureID_Save1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
226 extern unsigned int uTextureID_Load1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
227 extern unsigned int uTextureID_New1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
228 extern unsigned int uTextureID_Options;
0
Ritor1
parents:
diff changeset
229
Ritor1
parents:
diff changeset
230
Ritor1
parents:
diff changeset
231 extern unsigned int uTextureID_ib_td5_A;
Ritor1
parents:
diff changeset
232 extern unsigned int uTextureID_ib_td2_A; // weak
Ritor1
parents:
diff changeset
233 extern unsigned int uTextureID_ib_td1_A;
984
d982fffb8b96 CharacterUI_InventoryTab_Draw cleaned.
Nomad
parents: 948
diff changeset
234 extern int uTextureID_CharacterUI_InventoryBackground; // weak
0
Ritor1
parents:
diff changeset
235 extern int uTextureID_50795C; // weak
Ritor1
parents:
diff changeset
236
Ritor1
parents:
diff changeset
237
319
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
238 extern unsigned int uTextureID_Btn_GameSettings;
0
Ritor1
parents:
diff changeset
239
Ritor1
parents:
diff changeset
240
319
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
241 extern unsigned int uTextureID_Btn_Rest;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
242 extern unsigned int uTextureID_Btn_CastSpell;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
243 extern unsigned int uTextureID_Btn_ZoomIn;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
244 extern unsigned int uTextureID_Btn_ZoomOut;
0
Ritor1
parents:
diff changeset
245 extern unsigned int uTextureID_FONTPAL;
319
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
246 extern unsigned int uTextureID_Btn_NPCRight;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
247 extern unsigned int uTextureID_Btn_NPCLeft;
1207
96a81634669e arrays to std::arrays phase 3 - finishing global arrays
Grumpy7
parents: 1206
diff changeset
248 extern std::array<unsigned int, 8> pTextureIDs_pMapDirs;
0
Ritor1
parents:
diff changeset
249
Ritor1
parents:
diff changeset
250
Ritor1
parents:
diff changeset
251 extern unsigned int uTextureID_BarRed;
Ritor1
parents:
diff changeset
252 extern unsigned int uTextureID_BarYellow;
Ritor1
parents:
diff changeset
253 extern unsigned int uTextureID_BarGreen;
Ritor1
parents:
diff changeset
254 extern unsigned int uTextureID_BarBlue;
Ritor1
parents:
diff changeset
255
Ritor1
parents:
diff changeset
256
Ritor1
parents:
diff changeset
257 extern unsigned int uTextureID_right_panel; // weak
Ritor1
parents:
diff changeset
258
Ritor1
parents:
diff changeset
259
Ritor1
parents:
diff changeset
260 extern RGBTexture *pTexture_StatusBar;
Ritor1
parents:
diff changeset
261 extern RGBTexture *pTexture_LeftFrame;
Ritor1
parents:
diff changeset
262 extern RGBTexture *pTexture_TopFrame;
Ritor1
parents:
diff changeset
263 extern RGBTexture *pTexture_BottomFrame;
Ritor1
parents:
diff changeset
264 extern RGBTexture *pTexture_RightFrame;
Ritor1
parents:
diff changeset
265
Ritor1
parents:
diff changeset
266
910
Ritor1
parents: 712
diff changeset
267 extern unsigned int uTextureID_right_panel_loop; // weak
0
Ritor1
parents:
diff changeset
268
Ritor1
parents:
diff changeset
269
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
270 extern struct Texture *pTexture_Leather;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
271 extern struct Texture *pTexture_RestUI_CurrentSkyFrame; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
272 extern struct Texture *pTexture_RestUI_CurrentHourglassFrame; // idb
0
Ritor1
parents:
diff changeset
273
Ritor1
parents:
diff changeset
274
1207
96a81634669e arrays to std::arrays phase 3 - finishing global arrays
Grumpy7
parents: 1206
diff changeset
275 extern std::array<unsigned int, 5> uTextureID_Optkb;
0
Ritor1
parents:
diff changeset
276
Ritor1
parents:
diff changeset
277 extern unsigned int uTextureID_507C10; // weak
Ritor1
parents:
diff changeset
278 extern unsigned int uTextureID_507C14; // weak
Ritor1
parents:
diff changeset
279 extern unsigned int uTextureID_507C18; // weak
Ritor1
parents:
diff changeset
280 extern unsigned int uTextureID_507C1C; // weak
Ritor1
parents:
diff changeset
281 extern unsigned int uTextureID_507C20; // weak
Ritor1
parents:
diff changeset
282 extern unsigned int uTextureID_507C24; // weak
1207
96a81634669e arrays to std::arrays phase 3 - finishing global arrays
Grumpy7
parents: 1206
diff changeset
283 extern std::array<unsigned int, 10> pTextureIDs_GammaPositions;
0
Ritor1
parents:
diff changeset
284 extern unsigned int uTextureID_507C50; // weak
Ritor1
parents:
diff changeset
285 extern unsigned int uTextureID_507C54; // weak
Ritor1
parents:
diff changeset
286 extern unsigned int uTextureID_507C58; // weak
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
287
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
288
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
289 struct OptionsMenuSkin
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
290 {
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
291 OptionsMenuSkin();
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
292 void Relaease();
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
293
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
294 unsigned int uTextureID_Background; // 507C60
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
295 unsigned int uTextureID_TurnSpeed[3]; // 507C64
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
296 unsigned int uTextureID_ArrowLeft; // 507C70
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
297 unsigned int uTextureID_ArrowRight; // 507C74
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
298 unsigned int uTextureID_unused_0; // 507C78
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
299 unsigned int uTextureID_unused_1; // 507C7C
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
300 unsigned int uTextureID_unused_2; // 507C80
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
301 unsigned int uTextureID_FlipOnExit; // 507C84
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
302 unsigned int uTextureID_SoundLevels[10]; // 507C88
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
303 unsigned int uTextureID_AlwaysRun; // 507CB0
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
304 unsigned int uTextureID_WalkSound; // 507CB4
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
305 unsigned int uTextureID_ShowDamage; // 507CB8
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
306 };
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
307 extern OptionsMenuSkin options_menu_skin; // 507C60
0
Ritor1
parents:
diff changeset
308
Ritor1
parents:
diff changeset
309
910
Ritor1
parents: 712
diff changeset
310 extern unsigned int uTextureID_detaliz_close_button; // weak
0
Ritor1
parents:
diff changeset
311 extern unsigned int uTextureID_MAGNIF_B; // weak
Ritor1
parents:
diff changeset
312 extern unsigned int uTextureID_BACKDOLL; // weak
Ritor1
parents:
diff changeset
313 extern unsigned int uTextureID_BACKHAND; // weak
Ritor1
parents:
diff changeset
314
Ritor1
parents:
diff changeset
315
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
316 extern struct Texture pTex_F7CE30;
0
Ritor1
parents:
diff changeset
317
Ritor1
parents:
diff changeset
318
Ritor1
parents:
diff changeset
319 extern RGBTexture stru_5773C4; // idb
Ritor1
parents:
diff changeset
320
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
321 extern struct stru355 stru_4E82A4;// = {0x20, 0x41, 0, 0x20, 0xFF0000, 0xFF00, 0xFF, 0xFF000000}; moved to texture.h
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
322 extern struct stru355 stru_4EFCBC;// = {0x20, 0x41, 0, 0x10, 0x7C00, 0x3E0, 0x1F, 0x8000}; moved to texture.h
0
Ritor1
parents:
diff changeset
323
Ritor1
parents:
diff changeset
324
Ritor1
parents:
diff changeset
325
Ritor1
parents:
diff changeset
326
Ritor1
parents:
diff changeset
327
Ritor1
parents:
diff changeset
328
Ritor1
parents:
diff changeset
329
Ritor1
parents:
diff changeset
330
Ritor1
parents:
diff changeset
331
Ritor1
parents:
diff changeset
332 struct stru355
Ritor1
parents:
diff changeset
333 {
Ritor1
parents:
diff changeset
334 int field_0;
Ritor1
parents:
diff changeset
335 int field_4;
Ritor1
parents:
diff changeset
336 int field_8;
Ritor1
parents:
diff changeset
337 int field_C;
Ritor1
parents:
diff changeset
338 int field_10;
Ritor1
parents:
diff changeset
339 int field_14;
Ritor1
parents:
diff changeset
340 int field_18;
Ritor1
parents:
diff changeset
341 int field_1C;
Ritor1
parents:
diff changeset
342 };
Ritor1
parents:
diff changeset
343
Ritor1
parents:
diff changeset
344 /* 390 */
Ritor1
parents:
diff changeset
345 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
346 struct stru350
Ritor1
parents:
diff changeset
347 {
Ritor1
parents:
diff changeset
348 stru350 *_450DDE();
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
349 bool _450DF1(const struct stru355 *p1, const struct stru355 *p2);
0
Ritor1
parents:
diff changeset
350 unsigned int _450F55(int a2);
Ritor1
parents:
diff changeset
351 int _450FB1(int a2);
Ritor1
parents:
diff changeset
352 int sub_451007_scale_image_bicubic(unsigned short *pSrc, int srcWidth, int srcHeight, int srcPitch,
Ritor1
parents:
diff changeset
353 unsigned short *pDst, int dstWidth, int dstHeight, int dstPitch,
Ritor1
parents:
diff changeset
354 int a9, int a10);
Ritor1
parents:
diff changeset
355
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
356 struct stru355 field_0;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
357 struct stru355 field_20;
0
Ritor1
parents:
diff changeset
358 int field_40;
Ritor1
parents:
diff changeset
359 int field_44;
Ritor1
parents:
diff changeset
360 int field_48;
Ritor1
parents:
diff changeset
361 int field_4C;
Ritor1
parents:
diff changeset
362 int field_50;
Ritor1
parents:
diff changeset
363 int field_54;
Ritor1
parents:
diff changeset
364 int field_58;
Ritor1
parents:
diff changeset
365 int field_5C;
Ritor1
parents:
diff changeset
366 };
Ritor1
parents:
diff changeset
367 #pragma pack(pop)