2020-03-27 21:47:29 +01:00
|
|
|
#ifndef TEXTURE_H
|
|
|
|
#define TEXTURE_H
|
|
|
|
|
2020-04-07 12:56:13 +02:00
|
|
|
extern char carTpages[4][8];
|
2020-04-05 15:53:08 +02:00
|
|
|
extern char* texturename_buffer;
|
2020-04-06 01:06:00 +02:00
|
|
|
extern char* palette_lump;
|
2020-04-07 12:56:13 +02:00
|
|
|
|
2020-04-10 01:29:12 +02:00
|
|
|
extern SXYPAIR tpagepos[20];
|
|
|
|
|
2020-04-15 16:15:54 +02:00
|
|
|
extern unsigned short texture_pages[128];
|
|
|
|
extern unsigned short texture_cluts[128][32];
|
2020-04-10 01:29:12 +02:00
|
|
|
extern int tpage_texamts[128];
|
2020-04-09 17:36:53 +02:00
|
|
|
|
2020-04-07 12:56:13 +02:00
|
|
|
extern RECT16 clutpos;
|
2020-04-06 01:06:00 +02:00
|
|
|
extern RECT16 fontclutpos;
|
2020-04-27 17:38:04 +02:00
|
|
|
extern RECT16 mapclutpos;
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-04-09 19:10:34 +02:00
|
|
|
extern unsigned char tpageloaded[128];
|
|
|
|
extern unsigned char tpageslots[19];
|
|
|
|
|
2020-04-10 01:29:12 +02:00
|
|
|
extern DVECTOR slot_clutpos[19];
|
|
|
|
extern DVECTOR slot_tpagepos[19];
|
|
|
|
|
|
|
|
extern RECT16 tpage;
|
|
|
|
|
|
|
|
extern short specialSlot;
|
2020-04-09 19:10:34 +02:00
|
|
|
extern int slotsused;
|
2020-05-23 18:24:47 +02:00
|
|
|
extern int nperms;
|
2020-04-11 23:02:26 +02:00
|
|
|
extern int NoTextureMemory;
|
2020-04-10 01:29:12 +02:00
|
|
|
extern char specTpages[4][12];
|
2020-04-19 12:07:53 +02:00
|
|
|
|
2020-12-09 09:33:57 +01:00
|
|
|
extern void ProcessPalletLump(char *lump_ptr, int lump_size); // 0x00019F44
|
|
|
|
extern void load_civ_palettes(RECT16 *cluts); // 0x0001A094
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-12-09 09:33:57 +01:00
|
|
|
extern void IncrementClutNum(RECT16 *clut); // 0x00080DDC
|
2020-04-06 01:06:00 +02:00
|
|
|
extern void IncrementTPageNum(RECT16 *tpage); // 0x00080528
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-04-06 01:06:00 +02:00
|
|
|
extern int LoadTPageAndCluts(RECT16 *tpage, RECT16 *cluts, int tpage2send, char *tpageaddress); // 0x00080E14
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-04-06 01:06:00 +02:00
|
|
|
extern int Find_TexID(MODEL *model, int t_id); // 0x000805EC
|
2020-12-09 09:33:57 +01:00
|
|
|
extern TEXINF* GetTEXINFName(char *name, int *tpagenum, int *texturenum); // 0x00080F3C
|
|
|
|
extern TEXINF* GetTextureInfoName(char *name, TPAN *result); // 0x00080DA0
|
|
|
|
extern void GetTextureDetails(char *name, TEXTURE_DETAILS *info); // 0x00080BB0
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-04-06 01:06:00 +02:00
|
|
|
extern void update_slotinfo(int tpage, int slot, RECT16 *pos); // 0x00081038
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern void ProcessTextureInfo(char *lump_ptr); // 0x00081080
|
|
|
|
extern void LoadPermanentTPages(int *sector); // 0x00080688
|
|
|
|
|
|
|
|
extern void ReloadIcons(); // 0x00081118
|
|
|
|
|
2020-11-29 22:51:10 +01:00
|
|
|
#ifndef PSX
|
|
|
|
// [A] - loads TIM files as level textures
|
|
|
|
void LoadTPageFromTIMs(int tpage2send);
|
2020-12-06 21:29:41 +01:00
|
|
|
void LoadPermanentTPagesFromTIM();
|
2020-11-29 22:51:10 +01:00
|
|
|
#endif
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
#endif
|