blob: dff94ec777c2465c8e67f6680861fdbb43f12faa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/***************************************************************************
PluginWindowController.h
The big bad boy that controls/creates the game window, the openGLView, and
communicates with PCSXR itself
PeopsOpenGPU
Created by Gil Pedersen on Mon April 11 2004.
Copyright (c) 2004 Gil Pedersen.
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. See also the license.txt file for *
* additional informations. *
* *
***************************************************************************/
/*
In truth, this controller should be the ONLY place that glues between the
running PCSXR gpu and the mac interface.
ATM, some of the glue is here, some of it in drawgl.m, and a couple
of bits are in the config controller...
*/
#define PluginWindowController NetSfPeopsOpenGLGPUPluginWindowController
#import <Cocoa/Cocoa.h>
#import "PluginGLView.h"
@class PluginWindowController;
extern NSWindow *gameWindow;
extern PluginWindowController *gameController;
@interface PluginWindowController : NSWindowController
@property (weak) IBOutlet NSOpenGLView *glView;
+ (id)openGameView;
- (PluginGLView *)openGLView;
- (BOOL)fullscreen;
- (void)setFullscreen:(BOOL)flag;
- (void)performFullscreenSwap;
- (void)cureAllIlls;
- (void) adaptToFrame:(NSRect)aFrame;
- (NSRect) screenFrame;
- (void)subscribeToEvents;
- (id)initWithCoder:(NSCoder *)aDecoder ;
- (id)initWithWindow:(NSWindow*)theWindow;
- (void)windowDidBecomeKey:(NSNotification*)aNotice;
- (void)windowDidResignKey:(NSNotification*)aNotice;
@end
|