mirror of https://github.com/bsnes-emu/bsnes.git
31 lines
979 B
Objective-C
31 lines
979 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
#include <Core/gb.h>
|
|
#import <JoyKit/JoyKit.h>
|
|
#import "GBOSDView.h"
|
|
@class Document;
|
|
|
|
typedef enum {
|
|
GB_FRAME_BLENDING_MODE_DISABLED,
|
|
GB_FRAME_BLENDING_MODE_SIMPLE,
|
|
GB_FRAME_BLENDING_MODE_ACCURATE,
|
|
GB_FRAME_BLENDING_MODE_ACCURATE_EVEN = GB_FRAME_BLENDING_MODE_ACCURATE,
|
|
GB_FRAME_BLENDING_MODE_ACCURATE_ODD,
|
|
} GB_frame_blending_mode_t;
|
|
|
|
@interface GBView : NSView<JOYListener>
|
|
- (void) flip;
|
|
- (uint32_t *) pixels;
|
|
@property (nonatomic, weak) IBOutlet Document *document;
|
|
@property (nonatomic) GB_gameboy_t *gb;
|
|
@property (nonatomic) GB_frame_blending_mode_t frameBlendingMode;
|
|
@property (nonatomic, getter=isMouseHidingEnabled) BOOL mouseHidingEnabled;
|
|
@property (nonatomic) bool isRewinding;
|
|
@property (nonatomic, strong) NSView *internalView;
|
|
@property (weak) GBOSDView *osdView;
|
|
- (void) createInternalView;
|
|
- (uint32_t *)currentBuffer;
|
|
- (uint32_t *)previousBuffer;
|
|
- (void)screenSizeChanged;
|
|
- (void)setRumble: (double)amp;
|
|
@end
|