zodttd / snes4iphone
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
b098ecd
ME (author)
Mon Apr 28 16:11:45 -0700 2008
snes4iphone / display.h
| b098ecda » | ME | 2008-04-28 | 1 | /* | |
| 2 | * Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. | ||||
| 3 | * | ||||
| 4 | * (c) Copyright 1996 - 2001 Gary Henderson (gary.henderson@ntlworld.com) and | ||||
| 5 | * Jerremy Koot (jkoot@snes9x.com) | ||||
| 6 | * | ||||
| 7 | * Super FX C emulator code | ||||
| 8 | * (c) Copyright 1997 - 1999 Ivar (ivar@snes9x.com) and | ||||
| 9 | * Gary Henderson. | ||||
| 10 | * Super FX assembler emulator code (c) Copyright 1998 zsKnight and _Demo_. | ||||
| 11 | * | ||||
| 12 | * DSP1 emulator code (c) Copyright 1998 Ivar, _Demo_ and Gary Henderson. | ||||
| 13 | * C4 asm and some C emulation code (c) Copyright 2000 zsKnight and _Demo_. | ||||
| 14 | * C4 C code (c) Copyright 2001 Gary Henderson (gary.henderson@ntlworld.com). | ||||
| 15 | * | ||||
| 16 | * DOS port code contains the works of other authors. See headers in | ||||
| 17 | * individual files. | ||||
| 18 | * | ||||
| 19 | * Snes9x homepage: http://www.snes9x.com | ||||
| 20 | * | ||||
| 21 | * Permission to use, copy, modify and distribute Snes9x in both binary and | ||||
| 22 | * source form, for non-commercial purposes, is hereby granted without fee, | ||||
| 23 | * providing that this license information and copyright notice appear with | ||||
| 24 | * all copies and any derived work. | ||||
| 25 | * | ||||
| 26 | * This software is provided 'as-is', without any express or implied | ||||
| 27 | * warranty. In no event shall the authors be held liable for any damages | ||||
| 28 | * arising from the use of this software. | ||||
| 29 | * | ||||
| 30 | * Snes9x is freeware for PERSONAL USE only. Commercial users should | ||||
| 31 | * seek permission of the copyright holders first. Commercial use includes | ||||
| 32 | * charging money for Snes9x or software derived from Snes9x. | ||||
| 33 | * | ||||
| 34 | * The copyright holders request that bug fixes and improvements to the code | ||||
| 35 | * should be forwarded to them so everyone can benefit from the modifications | ||||
| 36 | * in future versions. | ||||
| 37 | * | ||||
| 38 | * Super NES and Super Nintendo Entertainment System are trademarks of | ||||
| 39 | * Nintendo Co., Limited and its subsidiary companies. | ||||
| 40 | */ | ||||
| 41 | #ifndef _DISPLAY_H_ | ||||
| 42 | #define _DISPLAY_H_ | ||||
| 43 | |||||
| 44 | START_EXTERN_C | ||||
| 45 | // Routines the port specific code has to implement | ||||
| 46 | void S9xSetPalette (); | ||||
| 47 | void S9xTextMode (); | ||||
| 48 | void S9xGraphicsMode (); | ||||
| 49 | char *S9xParseArgs (char **argv, int argc); | ||||
| 50 | void S9xParseArg (char **argv, int &index, int argc); | ||||
| 51 | void S9xExtraUsage (); | ||||
| 52 | uint32 S9xReadJoypad (int which1_0_to_4); | ||||
| 53 | bool8_32 S9xReadMousePosition (int which1_0_to_1, int &x, int &y, uint32 &buttons); | ||||
| 54 | bool8_32 S9xReadSuperScopePosition (int &x, int &y, uint32 &buttons); | ||||
| 55 | |||||
| 56 | void S9xUsage (); | ||||
| 57 | void S9xInitDisplay (int argc, char **argv); | ||||
| 58 | void S9xDeinitDisplay (); | ||||
| 59 | void S9xInitInputDevices (); | ||||
| 60 | void S9xSetTitle (const char *title); | ||||
| 61 | void S9xProcessEvents (bool8_32 block); | ||||
| 62 | void S9xPutImage (int width, int height); | ||||
| 63 | void S9xParseDisplayArg (char **argv, int &index, int argc); | ||||
| 64 | void S9xToggleSoundChannel (int channel); | ||||
| 65 | void S9xSetInfoString (const char *string); | ||||
| 66 | int S9xMinCommandLineArgs (); | ||||
| 67 | void S9xNextController (); | ||||
| 68 | bool8_32 S9xLoadROMImage (const char *string); | ||||
| 69 | const char *S9xSelectFilename (const char *def, const char *dir, | ||||
| 70 | const char *ext, const char *title); | ||||
| 71 | |||||
| 72 | const char *S9xChooseFilename (bool8_32 read_only); | ||||
| 73 | bool8_32 S9xOpenSnapshotFile (const char *base, bool8_32 read_only, STREAM *file); | ||||
| 74 | void S9xCloseSnapshotFile (STREAM file); | ||||
| 75 | |||||
| 76 | const char *S9xBasename (const char *filename); | ||||
| 77 | |||||
| 78 | int S9xFStrcmp (FILE *, const char *); | ||||
| 79 | const char *S9xGetHomeDirectory (); | ||||
| 80 | const char *S9xGetSnapshotDirectory (); | ||||
| 81 | const char *S9xGetROMDirectory (); | ||||
| 82 | const char *S9xGetSRAMFilename (); | ||||
| 83 | const char *S9xGetFilename (const char *extension); | ||||
| 84 | END_EXTERN_C | ||||
| 85 | |||||
| 86 | #endif | ||||

