1 /* 2 3 Copyright (C) 2015-2018 Night Dive Studios, LLC. 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 */ 19 #ifndef __WRAPPER_H 20 #define __WRAPPER_H 21 22 /* 23 * $Source: n:/project/cit/src/inc/RCS/wrapper.h $ 24 * $Revision: 1.7 $ 25 * $Author: dc $ 26 * $Date: 1994/05/12 00:30:52 $ 27 * 28 * $Log: wrapper.h $ 29 * Revision 1.7 1994/05/12 00:30:52 dc 30 * comment defines 31 * 32 * Revision 1.6 1994/05/11 21:31:04 dc 33 * some externals, if i remember correctly 34 * 35 * Revision 1.5 1994/04/07 22:37:53 xemu 36 * new wrapper paradigm 37 * 38 * Revision 1.4 1994/02/25 15:43:58 mahk 39 * Added stupid terseness questbit. 40 * 41 * Revision 1.3 1993/09/02 23:08:56 xemu 42 * angle me baby 43 * 44 * Revision 1.2 1993/07/22 17:31:25 xemu 45 * some #defines 46 * 47 * Revision 1.1 1993/06/14 15:37:04 xemu 48 * Initial revision 49 * 50 * 51 */ 52 53 // Includes 54 55 // Defines 56 #define MAIN_PANEL 0 57 #define SAVELOAD_PANEL 1 58 59 // questbit for terse text. 60 #define TERSENESS_QBIT 0x180 61 62 // Prototypes 63 64 // Replaces the inventory panel with a wrapper input paneloid thing, 65 // which is 2 by width text buttons for the user to click on. When clicked, 66 // the passed callback is called with the number of the button clicked 67 // as an argument. 68 uchar wrapper_options_func(ushort keycode, uint32_t context, intptr_t data); 69 70 #define NUM_SAVE_SLOTS 8 71 #define SAVE_COMMENT_LEN 32 72 73 // Globals 74 #ifndef __WRAPPER_SRC 75 extern char save_game_name[]; 76 extern char comments[NUM_SAVE_SLOTS][SAVE_COMMENT_LEN]; 77 #endif 78 #define Poke_SaveName(game_num) \ 79 { \ 80 save_game_name[6] = '0' + (game_num >> 3); \ 81 save_game_name[7] = '0' + (game_num & 7); \ 82 } 83 84 enum TEMP_STR_ { 85 REF_STR_Renderer = 0x10000000, 86 REF_STR_Software, 87 REF_STR_OpenGL, 88 89 REF_STR_TextFilt = 0x10000010, 90 REF_STR_TFUnfil, // unfiltered 91 REF_STR_TFBilin, // bilinear 92 93 REF_STR_MousLook = 0x11000000, 94 REF_STR_MousNorm, 95 REF_STR_MousInv, 96 97 REF_STR_Seqer = 0x20000000, 98 REF_STR_ADLMIDI, 99 REF_STR_NativeMI, 100 #ifdef USE_FLUIDSYNTH 101 REF_STR_FluidSyn, 102 #endif // USE_FLUIDSYNTH 103 REF_STR_MidiOut = 0x2fffffff, 104 105 REF_STR_MidiOutX = 0x30000000 // 0x30000000-0x3fffffff are MIDI outputs 106 }; 107 108 #endif // __WRAPPER_H 109