2016-03-30 23:07:55 +03:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2017-10-13 00:02:02 +03:00
|
|
|
#include <Core/gb.h>
|
2019-10-19 19:26:04 +03:00
|
|
|
#import <JoyKit/JoyKit.h>
|
2016-03-30 23:07:55 +03:00
|
|
|
|
2020-03-26 20:54:18 +02:00
|
|
|
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;
|
|
|
|
|
2019-10-19 19:26:04 +03:00
|
|
|
@interface GBView : NSView<JOYListener>
|
2016-03-30 23:07:55 +03:00
|
|
|
- (void) flip;
|
|
|
|
- (uint32_t *) pixels;
|
|
|
|
@property GB_gameboy_t *gb;
|
2020-03-26 20:54:18 +02:00
|
|
|
@property (nonatomic) GB_frame_blending_mode_t frameBlendingMode;
|
2016-07-05 23:34:33 +03:00
|
|
|
@property (getter=isMouseHidingEnabled) BOOL mouseHidingEnabled;
|
2018-02-10 14:42:14 +02:00
|
|
|
@property bool isRewinding;
|
2018-06-11 20:23:51 +03:00
|
|
|
@property NSView *internalView;
|
|
|
|
- (void) createInternalView;
|
|
|
|
- (uint32_t *)currentBuffer;
|
|
|
|
- (uint32_t *)previousBuffer;
|
2018-11-15 00:21:21 +02:00
|
|
|
- (void)screenSizeChanged;
|
2020-04-29 16:05:31 +03:00
|
|
|
- (void)setRumble: (double)amp;
|
2016-03-30 23:07:55 +03:00
|
|
|
@end
|