updated bords/mappers/stuff to 0.98.15, lots of them got broken, asmcore support...
[fceu.git] / svga.h
CommitLineData
c62d2810 1/* FCE Ultra - NES/Famicom Emulator
2 *
3 * Copyright notice for this file:
4 * Copyright (C) 1998 Bero
5 * Copyright (C) 2002 Ben Parnell
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22#include "driver.h"
23typedef struct __pal {
24 uint8 r;
25 uint8 g;
26 uint8 b;
27} pal;
28
29typedef struct {
30 int PAL;
31 #ifdef NETWORK
32 int NetworkPlay;
33 #endif
34 int SoundVolume;
35 int GameGenie;
36 int SUnderBase;
37
38 /* Current first and last rendered scanlines. */
39 int FirstSLine;
40 int LastSLine;
41
d97315ac 42 /* Driver code(user)-specified first and last rendered scanlines.
c62d2810 43 Usr*SLine[0] is for NTSC, Usr*SLine[1] is for PAL.
44 */
45 int UsrFirstSLine[2];
46 int UsrLastSLine[2];
47 int SnapName;
48 unsigned int SndRate;
49} FCEUS;
50
51extern FCEUS FSettings;
52
53void FCEU_PrintError(char *format, ...);
54void FCEU_DispMessage(char *format, ...);
d97315ac 55#define FCEU_printf printf
c62d2810 56
57void SetNESDeemph(uint8 d, int force);
58void DrawTextTrans(uint8 *dest, uint32 width, uint8 *textmsg, uint8 fgcolor);
59void FCEU_PutImage(void);
60#ifdef FRAMESKIP
61void FCEU_PutImageDummy(void);
62#endif
63
64extern uint8 Exit;
65extern uint8 pale;
66extern uint8 vsdip;
67void SetNESPalette(void);
68
69#define JOY_A 1
70#define JOY_B 2
71#define JOY_SELECT 4
72#define JOY_START 8
73#define JOY_UP 0x10
74#define JOY_DOWN 0x20
75#define JOY_LEFT 0x40
76#define JOY_RIGHT 0x80
77
78extern pal *palo;
79
80void DoCommand(uint8 c);
81extern uint8 CommandQueue;
82void FCEU_ResetPalette(void);
83void LoadGamePalette(void);
84void FlushCommandQueue(void);