SameBoy/Cocoa/GBView.h

27 lines
791 B
Objective-C
Raw Permalink Normal View History

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