2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2009 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library 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 GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "SDL_config.h"
25 ScreenBlaster 3 definitions
30 #ifndef _SDL_xbios_sb3_h_
31 #define _SDL_xbios_sb3_h_
36 #define C_SCPN 0x5343504EL
39 #define SCPN_DEV_1BPP 0
40 #define SCPN_DEV_2BPP 1
41 #define SCPN_DEV_4BPP 2
42 #define SCPN_DEV_8BPP 3
43 #define SCPN_DEV_16BPP 4
45 extern const int SDL_XBIOS_scpn_planes_device[];
50 unsigned short virtual_width; /* Virtual screen width */
51 unsigned short virtual_height; /* Virtual screen height */
52 unsigned short visible_width; /* Visible width */
53 unsigned short visible_height; /* Visible height */
54 unsigned short h_pos; /* Horizontal position in virtual screen */
55 unsigned short v_pos; /* Vertical position in virtual screen */
57 unsigned long size; /* Size of screen in bytes */
58 unsigned short device; /* Device number to find planes = getRez() */
59 /* = Index in scpn_planes_device[] */
60 } __attribute__((packed)) scpn_screeninfo_t;
63 unsigned long magic; /* just a BRA assembler jump */
64 unsigned short version;
66 unsigned short ptsout0_1;
67 unsigned short ptsout0_2;
68 unsigned short dummy3;
69 unsigned char date[8]; /* Date of program build */
70 unsigned char asm_string[30]; /* 10 times the 'ASM' string */
71 unsigned short dummy4;
72 scpn_screeninfo_t *screen_info;
73 unsigned short dummy6;
74 } __attribute__((packed)) scpn_cookie_t;
76 /*--- Function prototypes ---*/
78 int SDL_XBIOS_SB3Usable(scpn_cookie_t *cookie_scpn);
80 void SDL_XBIOS_ListSB3Modes(_THIS, int actually_add, scpn_cookie_t *cookie_scpn);
82 #endif /* _SDL_xbios_sb3_h_ */