1 |
/* |
2 |
* video_macosx.h - Some video constants and globals |
3 |
* |
4 |
* $Id: video_macosx.h,v 1.5 2003/01/10 23:18:02 nigel Exp $ |
5 |
* |
6 |
* Basilisk II (C) 1997-2001 Christian Bauer |
7 |
* |
8 |
* This program is free software; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License as published by |
10 |
* the Free Software Foundation; either version 2 of the License, or |
11 |
* (at your option) any later version. |
12 |
* |
13 |
* This program is distributed in the hope that it will be useful, |
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
* GNU General Public License for more details. |
17 |
* |
18 |
* You should have received a copy of the GNU General Public License |
19 |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
*/ |
22 |
|
23 |
#import <video.h> |
24 |
|
25 |
/* Set the strategy for drawing the bitmap in the Mac OS X window */ |
26 |
//#define CGDRAWBITMAP |
27 |
#define CGIMAGEREF |
28 |
//#define NSBITMAP |
29 |
|
30 |
// Using Core Graphics is fastest when rendering 32bit data. Rendering CGImageRefs |
31 |
// allows us to use all the bitmaps that BasiliskII supports. When both Basilisk II |
32 |
// and OS X are set to 'Thousands', it can achieve over 500fps in a 312x342 window! |
33 |
|
34 |
/* When the BasiliskII video driver respects the alpha bits, set this to let us use */ |
35 |
/* kCGImageAlphaPremultipliedFirst, and to have nice rounded corners on the screen. */ |
36 |
//#define CG_USE_ALPHA |
37 |
/* At the moment, it writes in the fill 32bits :-( */ |
38 |
|
39 |
|
40 |
#define MIN_WIDTH 512 |
41 |
#define MIN_HEIGHT 384 |
42 |
#define MIN_HEIGHTC 342 // For classic emulation |
43 |
|
44 |
#define MAX_WIDTH 1240 |
45 |
#define MAX_HEIGHT 1024 |
46 |
|
47 |
// Display types |
48 |
enum |
49 |
{ |
50 |
DISPLAY_OPENGL, |
51 |
DISPLAY_SCREEN, |
52 |
DISPLAY_WINDOW |
53 |
}; |
54 |
|
55 |
|
56 |
extern uint8 display_type, |
57 |
frame_skip; |
58 |
extern uint16 init_width, |
59 |
init_height, |
60 |
init_depth; |
61 |
|
62 |
extern bool parse_screen_prefs (const char *); |
63 |
extern void resizeWinTo (const uint16, const uint16); |
64 |
|
65 |
#import <AppKit/NSWindow.h> |
66 |
#import "EmulatorView.h" |
67 |
|
68 |
extern NSWindow *the_win; |
69 |
extern EmulatorView *output; |