annotate Texture.h @ 2336:d6887ee81068

header file include cleanup
author Grumpy7
date Wed, 02 Apr 2014 23:21:34 +0200
parents 23dbcaa651cc
children 0f17a30149ec
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();
2129
23dbcaa651cc LoadPCXFile
Ritor1
parents: 1677
diff changeset
13 int LoadPCXFile(const char *Filename, unsigned int a3);
0
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;
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 1477
diff changeset
27 int _allocation_flags; // & 1 - malloc, else custom allocator
0
Ritor1
parents:
diff changeset
28 unsigned __int16 *pPixels;
Ritor1
parents:
diff changeset
29 };
Ritor1
parents:
diff changeset
30 #pragma pack(pop)
Ritor1
parents:
diff changeset
31
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33
Ritor1
parents:
diff changeset
34 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
35 struct Texture
Ritor1
parents:
diff changeset
36 {
Ritor1
parents:
diff changeset
37 Texture();
Ritor1
parents:
diff changeset
38 void Release();
Ritor1
parents:
diff changeset
39 void *UnzipPalette();
Ritor1
parents:
diff changeset
40
Ritor1
parents:
diff changeset
41 char pName[16];
Ritor1
parents:
diff changeset
42 unsigned int uSizeOfMaxLevelOfDetail;
Ritor1
parents:
diff changeset
43 unsigned int uTextureSize;
Ritor1
parents:
diff changeset
44 unsigned __int16 uTextureWidth;
Ritor1
parents:
diff changeset
45 unsigned __int16 uTextureHeight;
Ritor1
parents:
diff changeset
46 __int16 uWidthLn2;
Ritor1
parents:
diff changeset
47 __int16 uHeightLn2;
Ritor1
parents:
diff changeset
48 __int16 uWidthMinus1;
Ritor1
parents:
diff changeset
49 __int16 uHeightMinus1;
Ritor1
parents:
diff changeset
50 short palette_id1;
Ritor1
parents:
diff changeset
51 short palette_id2;
Ritor1
parents:
diff changeset
52 unsigned int uDecompressedSize;
Ritor1
parents:
diff changeset
53 int pBits;
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
54 unsigned __int8 *pLevelOfDetail0_prolly_alpha_mask;
0
Ritor1
parents:
diff changeset
55 unsigned __int8 *pLevelOfDetail1;
Ritor1
parents:
diff changeset
56 unsigned __int8 *pLevelOfDetail2;
Ritor1
parents:
diff changeset
57 unsigned __int8 *pLevelOfDetail3;
Ritor1
parents:
diff changeset
58 unsigned __int16 *pPalette16;
Ritor1
parents:
diff changeset
59 unsigned __int8 *pPalette24;
Ritor1
parents:
diff changeset
60 };
Ritor1
parents:
diff changeset
61 #pragma pack(pop)
Ritor1
parents:
diff changeset
62
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 /* 323 */
Ritor1
parents:
diff changeset
80 enum TEXTURE_FRAME_TABLE_FLAGS
Ritor1
parents:
diff changeset
81 {
Ritor1
parents:
diff changeset
82 TEXTURE_FRAME_TABLE_MORE_FRAMES = 0x1,
Ritor1
parents:
diff changeset
83 TEXTURE_FRAME_TABLE_FIRST = 0x2,
Ritor1
parents:
diff changeset
84 };
Ritor1
parents:
diff changeset
85
Ritor1
parents:
diff changeset
86
Ritor1
parents:
diff changeset
87
Ritor1
parents:
diff changeset
88 /* 41 */
Ritor1
parents:
diff changeset
89 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
90 struct TextureFrame
Ritor1
parents:
diff changeset
91 {
Ritor1
parents:
diff changeset
92 char pTextureName[12];
Ritor1
parents:
diff changeset
93 __int16 uTextureID;
Ritor1
parents:
diff changeset
94 __int16 uAnimTime;
Ritor1
parents:
diff changeset
95 __int16 uAnimLength;
Ritor1
parents:
diff changeset
96 __int16 uFlags;
Ritor1
parents:
diff changeset
97 };
Ritor1
parents:
diff changeset
98 #pragma pack(pop)
Ritor1
parents:
diff changeset
99
Ritor1
parents:
diff changeset
100 /* 40 */
Ritor1
parents:
diff changeset
101 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
102 struct TextureFrameTable
Ritor1
parents:
diff changeset
103 {
Ritor1
parents:
diff changeset
104 //----- (0044D4C9) --------------------------------------------------------
Ritor1
parents:
diff changeset
105 inline TextureFrameTable()
Ritor1
parents:
diff changeset
106 {
Ritor1
parents:
diff changeset
107 pTextures = 0;
711
a5e587c8e30e some cleaning
Gloval
parents: 688
diff changeset
108 sNumTextures = 0;
0
Ritor1
parents:
diff changeset
109 }
Ritor1
parents:
diff changeset
110 int FromFileTxt(const char *Args);
Ritor1
parents:
diff changeset
111 void ToFile();
1477
7ef4b64f6329 * LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents: 1453
diff changeset
112 void FromFile(void *data_mm6, void *data_mm7, void *data_mm8);
711
a5e587c8e30e some cleaning
Gloval
parents: 688
diff changeset
113 void LoadAnimationSequenceAndPalettes(signed int uIconID);
1632
69ab7593e7af Out of bounds (id 65536) texture fixed.
Nomad
parents: 1583
diff changeset
114 int GetFrameTexture(int uFrameID, int time);
0
Ritor1
parents:
diff changeset
115 unsigned int FindTextureByName(const char *Str2);
Ritor1
parents:
diff changeset
116
Ritor1
parents:
diff changeset
117
711
a5e587c8e30e some cleaning
Gloval
parents: 688
diff changeset
118 signed int sNumTextures;
0
Ritor1
parents:
diff changeset
119 struct TextureFrame *pTextures;
Ritor1
parents:
diff changeset
120 };
Ritor1
parents:
diff changeset
121 #pragma pack(pop)
Ritor1
parents:
diff changeset
122
Ritor1
parents:
diff changeset
123 extern struct TextureFrameTable *pTextureFrameTable;
Ritor1
parents:
diff changeset
124
Ritor1
parents:
diff changeset
125
Ritor1
parents:
diff changeset
126
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 1119
diff changeset
127 extern std::array<struct RGBTexture, 45> pSavegameThumbnails;
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
128 extern std::array<struct Texture *, 2> pTexture_LloydBeacons;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
129 extern struct Texture *pTexture_50635C;
1453
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
130 extern struct Texture *pTex_book_button8_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
131 extern struct Texture *pTex_book_button8_on;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
132 extern struct Texture *pTex_book_button7_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
133 extern struct Texture *pTex_book_button7_on;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
134 extern struct Texture *pTex_book_button6_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
135 extern struct Texture *pTex_book_button6_on;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
136 extern struct Texture *pTex_book_button5_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
137 extern struct Texture *pTex_book_button5_on;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
138 extern struct Texture *pTex_book_button4_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
139 extern struct Texture *pTex_book_button4_on;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
140 extern struct Texture *pTex_book_button3_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
141 extern struct Texture *pTex_book_button3_on;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
142 extern struct Texture *pTex_book_button2_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
143 extern struct Texture *pTex_book_button1_off;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
144 extern struct Texture *pTex_book_button2_on;
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1402
diff changeset
145 extern struct Texture *pTex_book_button1_on;
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
146 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
147
1402
a519a6a412d0 CloseSpellBook and close SpellBookPage
Ritor1
parents: 1262
diff changeset
148 extern std::array<struct Texture *, 12> SBPageCSpellsTextureList;
a519a6a412d0 CloseSpellBook and close SpellBookPage
Ritor1
parents: 1262
diff changeset
149 extern std::array<struct Texture *, 12> SBPageSSpellsTextureList;
a519a6a412d0 CloseSpellBook and close SpellBookPage
Ritor1
parents: 1262
diff changeset
150 extern struct Texture *pSBQuickSpellBtnTextr;
a519a6a412d0 CloseSpellBook and close SpellBookPage
Ritor1
parents: 1262
diff changeset
151 extern struct Texture *pSpellBookClickCloseBtnTextr;
a519a6a412d0 CloseSpellBook and close SpellBookPage
Ritor1
parents: 1262
diff changeset
152 extern struct Texture *pSBClickQuickSpellBtnTextr;
a519a6a412d0 CloseSpellBook and close SpellBookPage
Ritor1
parents: 1262
diff changeset
153 extern struct Texture *pSpellBookCloseBtnTextr;
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
154 extern std::array<std::array<struct Texture *, 2>, 9> pTextures_tabs;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
155 extern struct Texture *pTexture_mapbordr; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
156 extern struct Texture *pTexture_pagemask; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
157 extern std::array<struct Texture *, 9> pSpellBookPagesTextr;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
158 extern struct Texture *pSpellBookPagesTextr_9;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
159 extern struct Texture *pSpellBookPagesTextr_10;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
160 extern struct Texture *pSpellBookPagesTextr_11;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
161 extern struct Texture *pSpellBookPagesTextr_12;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
162 extern struct Texture *pSpellBookPagesTextr_13;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
163 extern struct Texture *pTexture_AutonotesBook;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
164 extern struct Texture *pTexture_CurrentBook;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
165 extern struct Texture *pTex_moon_new;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
166 extern struct Texture *pTex_moon_4;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
167 extern struct Texture *pTex_moon_2;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
168 extern struct Texture *pTex_moon_2_2;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
169 extern struct Texture *pTex_moon_ful;
0
Ritor1
parents:
diff changeset
170
Ritor1
parents:
diff changeset
171
Ritor1
parents:
diff changeset
172
Ritor1
parents:
diff changeset
173 extern RGBTexture stru_506E40; // weak
Ritor1
parents:
diff changeset
174 extern RGBTexture pTexture_PCX;
Ritor1
parents:
diff changeset
175
Ritor1
parents:
diff changeset
176
Ritor1
parents:
diff changeset
177 extern int uTextureID_RestUI_restb4; // weak
Ritor1
parents:
diff changeset
178 extern int uTextureID_RestUI_restexit; // weak
Ritor1
parents:
diff changeset
179 extern int uTextureID_RestUI_restb3; // weak
Ritor1
parents:
diff changeset
180 extern int uTextureID_RestUI_restb1; // weak
Ritor1
parents:
diff changeset
181 extern int uTextureID_RestUI_restb2; // weak
Ritor1
parents:
diff changeset
182 extern int uTextureID_RestUI_restmain; // weak
Ritor1
parents:
diff changeset
183 extern unsigned int uTextureID_Leather;
Ritor1
parents:
diff changeset
184 extern int uTextureID_ar_dn_dn; // weak
Ritor1
parents:
diff changeset
185 extern int uTextureID_ar_dn_up; // weak
Ritor1
parents:
diff changeset
186 extern int uTextureID_ar_up_dn; // weak
Ritor1
parents:
diff changeset
187 extern int uTextureID_ar_up_up; // weak
Ritor1
parents:
diff changeset
188
Ritor1
parents:
diff changeset
189
Ritor1
parents:
diff changeset
190 extern int uTextureID_507698; // weak
Ritor1
parents:
diff changeset
191 extern int uTextureID_50769C; // weak
Ritor1
parents:
diff changeset
192 extern int uTextureID_5076A0; // weak
Ritor1
parents:
diff changeset
193 extern int uTextureID_5076A4; // weak
Ritor1
parents:
diff changeset
194 extern int uTextureID_5076A8; // weak
Ritor1
parents:
diff changeset
195 extern int uTextureID_5076AC; // weak
Ritor1
parents:
diff changeset
196 extern int uTextureID_5076B0; // weak
Ritor1
parents:
diff changeset
197 extern int uTextureID_5076B4; // weak
Ritor1
parents:
diff changeset
198 extern int uTextureID_Parchment; // weak
Ritor1
parents:
diff changeset
199 extern unsigned int uTextureID_mhp_yel;
Ritor1
parents:
diff changeset
200 extern unsigned int uTextureID_mhp_red;
Ritor1
parents:
diff changeset
201 extern unsigned int uTextureID_mhp_grn;
Ritor1
parents:
diff changeset
202 extern unsigned int uTextureID_mhp_capr;
Ritor1
parents:
diff changeset
203 extern unsigned int uTextureID_mhp_capl;
Ritor1
parents:
diff changeset
204 extern unsigned int uTextureID_mhp_bd;
Ritor1
parents:
diff changeset
205 extern unsigned int uTextureID_BUTTDESC2;
Ritor1
parents:
diff changeset
206 extern unsigned int uTextureID_x_x_u;
Ritor1
parents:
diff changeset
207 extern unsigned int uTextureID_BUTTMAKE2;
Ritor1
parents:
diff changeset
208 extern unsigned int uTextureID_BUTTMAKE;
Ritor1
parents:
diff changeset
209 extern unsigned int uTextureID_BUTTYES2;
Ritor1
parents:
diff changeset
210 extern unsigned int uTextureID_x_ok_u;
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
211 extern std::array<struct Texture *, 22> pPlayerPortraits;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
212 extern std::array<struct Texture *, 9> pTexture_IC_KNIGHT;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
213 extern struct Texture *pTexture_MAKESKY;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
214 extern struct Texture *pTexture_MAKETOP;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
215 extern std::array<struct Texture *, 20> pTextures_arrowr;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
216 extern std::array<struct Texture *, 20> pTextures_arrowl;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
217 extern struct Texture *pTexture_presleft;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
218 extern struct Texture *pTexture_pressrigh;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
219 extern struct Texture *pTexture_buttminu;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
220 extern struct Texture *pTexture_buttplus;
362
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
221 extern unsigned int uTextureID_Quit1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
222 extern unsigned int uTextureID_Resume1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
223 extern unsigned int uTextureID_Controls1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
224 extern unsigned int uTextureID_Save1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
225 extern unsigned int uTextureID_Load1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
226 extern unsigned int uTextureID_New1;
38bfbee60146 Menu options
Ritor1
parents: 319
diff changeset
227 extern unsigned int uTextureID_Options;
0
Ritor1
parents:
diff changeset
228
Ritor1
parents:
diff changeset
229
Ritor1
parents:
diff changeset
230 extern unsigned int uTextureID_ib_td5_A;
1667
c586fa9e4cbb MainMenuUI_Credits_Loop() cleaning(continue)
Ritor1
parents: 1632
diff changeset
231 extern unsigned int uTextureID_ib_td4_A;
c586fa9e4cbb MainMenuUI_Credits_Loop() cleaning(continue)
Ritor1
parents: 1632
diff changeset
232 extern unsigned int uTextureID_ib_td3_A;
c586fa9e4cbb MainMenuUI_Credits_Loop() cleaning(continue)
Ritor1
parents: 1632
diff changeset
233 extern unsigned int uTextureID_ib_td2_A;
0
Ritor1
parents:
diff changeset
234 extern unsigned int uTextureID_ib_td1_A;
984
d982fffb8b96 CharacterUI_InventoryTab_Draw cleaned.
Nomad
parents: 948
diff changeset
235 extern int uTextureID_CharacterUI_InventoryBackground; // weak
0
Ritor1
parents:
diff changeset
236 extern int uTextureID_50795C; // weak
Ritor1
parents:
diff changeset
237
Ritor1
parents:
diff changeset
238
319
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
239 extern unsigned int uTextureID_Btn_GameSettings;
0
Ritor1
parents:
diff changeset
240
Ritor1
parents:
diff changeset
241
319
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
242 extern unsigned int uTextureID_Btn_Rest;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
243 extern unsigned int uTextureID_Btn_CastSpell;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
244 extern unsigned int uTextureID_Btn_ZoomIn;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
245 extern unsigned int uTextureID_Btn_ZoomOut;
0
Ritor1
parents:
diff changeset
246 extern unsigned int uTextureID_FONTPAL;
319
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
247 extern unsigned int uTextureID_Btn_NPCRight;
5a66be213cff Actor::Die
Nomad
parents: 135
diff changeset
248 extern unsigned int uTextureID_Btn_NPCLeft;
1207
96a81634669e arrays to std::arrays phase 3 - finishing global arrays
Grumpy7
parents: 1206
diff changeset
249 extern std::array<unsigned int, 8> pTextureIDs_pMapDirs;
0
Ritor1
parents:
diff changeset
250
Ritor1
parents:
diff changeset
251
Ritor1
parents:
diff changeset
252 extern unsigned int uTextureID_BarRed;
Ritor1
parents:
diff changeset
253 extern unsigned int uTextureID_BarYellow;
Ritor1
parents:
diff changeset
254 extern unsigned int uTextureID_BarGreen;
Ritor1
parents:
diff changeset
255 extern unsigned int uTextureID_BarBlue;
Ritor1
parents:
diff changeset
256
Ritor1
parents:
diff changeset
257
Ritor1
parents:
diff changeset
258 extern unsigned int uTextureID_right_panel; // weak
Ritor1
parents:
diff changeset
259
Ritor1
parents:
diff changeset
260
Ritor1
parents:
diff changeset
261 extern RGBTexture *pTexture_StatusBar;
Ritor1
parents:
diff changeset
262 extern RGBTexture *pTexture_LeftFrame;
Ritor1
parents:
diff changeset
263 extern RGBTexture *pTexture_TopFrame;
Ritor1
parents:
diff changeset
264 extern RGBTexture *pTexture_BottomFrame;
Ritor1
parents:
diff changeset
265 extern RGBTexture *pTexture_RightFrame;
Ritor1
parents:
diff changeset
266
Ritor1
parents:
diff changeset
267
910
Ritor1
parents: 712
diff changeset
268 extern unsigned int uTextureID_right_panel_loop; // weak
0
Ritor1
parents:
diff changeset
269
Ritor1
parents:
diff changeset
270
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
271 extern struct Texture *pTexture_Leather;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
272 extern struct Texture *pTexture_RestUI_CurrentSkyFrame; // idb
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
273 extern struct Texture *pTexture_RestUI_CurrentHourglassFrame; // idb
0
Ritor1
parents:
diff changeset
274
Ritor1
parents:
diff changeset
275
1207
96a81634669e arrays to std::arrays phase 3 - finishing global arrays
Grumpy7
parents: 1206
diff changeset
276 extern std::array<unsigned int, 5> uTextureID_Optkb;
0
Ritor1
parents:
diff changeset
277
1677
a699ecd7aeb3 PlayerCreationUI_Draw()
Ritor1
parents: 1676
diff changeset
278 extern unsigned int optvid_base_texture_id;
a699ecd7aeb3 PlayerCreationUI_Draw()
Ritor1
parents: 1676
diff changeset
279 extern unsigned int bloodsplats_texture_id;
a699ecd7aeb3 PlayerCreationUI_Draw()
Ritor1
parents: 1676
diff changeset
280 extern unsigned int us_colored_lights_texture_id;
a699ecd7aeb3 PlayerCreationUI_Draw()
Ritor1
parents: 1676
diff changeset
281 extern unsigned int tinting_texture_id;
0
Ritor1
parents:
diff changeset
282 extern unsigned int uTextureID_507C20; // weak
Ritor1
parents:
diff changeset
283 extern unsigned int uTextureID_507C24; // weak
1207
96a81634669e arrays to std::arrays phase 3 - finishing global arrays
Grumpy7
parents: 1206
diff changeset
284 extern std::array<unsigned int, 10> pTextureIDs_GammaPositions;
1677
a699ecd7aeb3 PlayerCreationUI_Draw()
Ritor1
parents: 1676
diff changeset
285 extern unsigned int not_available_bloodsplats_texture_id;
a699ecd7aeb3 PlayerCreationUI_Draw()
Ritor1
parents: 1676
diff changeset
286 extern unsigned int not_available_us_colored_lights_texture_id;
a699ecd7aeb3 PlayerCreationUI_Draw()
Ritor1
parents: 1676
diff changeset
287 extern unsigned int not_available_tinting_texture_id;
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
288
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
289
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
290 struct OptionsMenuSkin
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
291 {
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
292 OptionsMenuSkin();
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
293 void Relaease();
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
294
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
295 unsigned int uTextureID_Background; // 507C60
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
296 unsigned int uTextureID_TurnSpeed[3]; // 507C64
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
297 unsigned int uTextureID_ArrowLeft; // 507C70
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
298 unsigned int uTextureID_ArrowRight; // 507C74
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
299 unsigned int uTextureID_unused_0; // 507C78
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
300 unsigned int uTextureID_unused_1; // 507C7C
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
301 unsigned int uTextureID_unused_2; // 507C80
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
302 unsigned int uTextureID_FlipOnExit; // 507C84
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
303 unsigned int uTextureID_SoundLevels[10]; // 507C88
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
304 unsigned int uTextureID_AlwaysRun; // 507CB0
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
305 unsigned int uTextureID_WalkSound; // 507CB4
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
306 unsigned int uTextureID_ShowDamage; // 507CB8
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
307 };
5a2dbb00c399 Code cleaning.
Nomad
parents: 910
diff changeset
308 extern OptionsMenuSkin options_menu_skin; // 507C60
0
Ritor1
parents:
diff changeset
309
Ritor1
parents:
diff changeset
310
910
Ritor1
parents: 712
diff changeset
311 extern unsigned int uTextureID_detaliz_close_button; // weak
0
Ritor1
parents:
diff changeset
312 extern unsigned int uTextureID_MAGNIF_B; // weak
Ritor1
parents:
diff changeset
313 extern unsigned int uTextureID_BACKDOLL; // weak
Ritor1
parents:
diff changeset
314 extern unsigned int uTextureID_BACKHAND; // weak
Ritor1
parents:
diff changeset
315
Ritor1
parents:
diff changeset
316
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
317 extern struct Texture pTex_F7CE30;
0
Ritor1
parents:
diff changeset
318
Ritor1
parents:
diff changeset
319
Ritor1
parents:
diff changeset
320 extern RGBTexture stru_5773C4; // idb
Ritor1
parents:
diff changeset
321
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
322 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
323 extern struct stru355 stru_4EFCBC;// = {0x20, 0x41, 0, 0x10, 0x7C00, 0x3E0, 0x1F, 0x8000}; moved to texture.h
0
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
Ritor1
parents:
diff changeset
333 struct stru355
Ritor1
parents:
diff changeset
334 {
Ritor1
parents:
diff changeset
335 int field_0;
Ritor1
parents:
diff changeset
336 int field_4;
Ritor1
parents:
diff changeset
337 int field_8;
Ritor1
parents:
diff changeset
338 int field_C;
Ritor1
parents:
diff changeset
339 int field_10;
Ritor1
parents:
diff changeset
340 int field_14;
Ritor1
parents:
diff changeset
341 int field_18;
Ritor1
parents:
diff changeset
342 int field_1C;
Ritor1
parents:
diff changeset
343 };
Ritor1
parents:
diff changeset
344
Ritor1
parents:
diff changeset
345 /* 390 */
Ritor1
parents:
diff changeset
346 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
347 struct stru350
Ritor1
parents:
diff changeset
348 {
Ritor1
parents:
diff changeset
349 stru350 *_450DDE();
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
350 bool _450DF1(const struct stru355 *p1, const struct stru355 *p2);
0
Ritor1
parents:
diff changeset
351 unsigned int _450F55(int a2);
Ritor1
parents:
diff changeset
352 int _450FB1(int a2);
Ritor1
parents:
diff changeset
353 int sub_451007_scale_image_bicubic(unsigned short *pSrc, int srcWidth, int srcHeight, int srcPitch,
Ritor1
parents:
diff changeset
354 unsigned short *pDst, int dstWidth, int dstHeight, int dstPitch,
Ritor1
parents:
diff changeset
355 int a9, int a10);
Ritor1
parents:
diff changeset
356
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
357 struct stru355 field_0;
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1207
diff changeset
358 struct stru355 field_20;
0
Ritor1
parents:
diff changeset
359 int field_40;
Ritor1
parents:
diff changeset
360 int field_44;
Ritor1
parents:
diff changeset
361 int field_48;
Ritor1
parents:
diff changeset
362 int field_4C;
Ritor1
parents:
diff changeset
363 int field_50;
Ritor1
parents:
diff changeset
364 int field_54;
Ritor1
parents:
diff changeset
365 int field_58;
Ritor1
parents:
diff changeset
366 int field_5C;
Ritor1
parents:
diff changeset
367 };
Ritor1
parents:
diff changeset
368 #pragma pack(pop)