]> icculus.org git repositories - btb/d2x.git/blob - main/gamepal.h
use the orientation parameter of g3_draw_bitmap
[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 /*
15  *
16  * Header for gamepal.c
17  *
18  */
19
20 #ifndef _GAMEPAL_H
21 #define _GAMEPAL_H
22
23 #include "inferno.h"
24
25 #define D2_DEFAULT_PALETTE "default.256"
26 #define MENU_PALETTE    "default.256"
27
28 extern char Current_level_palette[FILENAME_LEN];
29
30 // load a palette by name. returns 1 if new palette loaded, else 0
31 // if used_for_level is set, load pig, etc.
32 // if no_change_screen is set, the current screen does not get
33 // remapped, and the hardware palette does not get changed
34 int load_palette(char *name, int used_for_level, int no_change_screen);
35
36 extern ubyte last_palette_for_color_fonts[768];
37
38 // remap color font & menu background into the current palette
39 void remap_fonts_and_menus(int do_fadetable_hack);
40
41 #endif /* _GAMEPAL_H */