]> icculus.org git repositories - btb/d2x.git/blob - main/gamepal.h
Enabled shareware build, endlevel flythrough sequence
[btb/d2x.git] / main / gamepal.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 #ifndef _GAMEPAL_H
15 #define _GAMEPAL_H
16
17 #include "inferno.h"
18
19 #define DEFAULT_PALETTE "default.256"
20 #define MENU_PALETTE            "default.256"
21
22 extern char Current_level_palette[FILENAME_LEN];
23
24 //load a palette by name. returns 1 if new palette loaded, else 0
25 //if used_for_level is set, load pig, etc.
26 //if no_change_screen is set, the current screen does not get remapped,
27 //and the hardware palette does not get changed
28 int load_palette(char *name,int used_for_level,int no_change_screen);
29
30 extern ubyte last_palette_for_color_fonts[768];
31
32 //remap color font & menu background into the current palette
33 void remap_fonts_and_menus(int do_fadetable_hack);
34
35 #endif