SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
AppleCommon/GBViewBase.h
1 #import <TargetConditionals.h>
2
3 #if TARGET_OS_IPHONE
4 #define NSView UIView
5 #import <UIKit/UIKit.h>
6 #else
7 #import <Cocoa/Cocoa.h>
8 #endif
9
10 #import <Core/gb.h>
11
12 typedef enum {
13 GB_FRAME_BLENDING_MODE_DISABLED,
14 GB_FRAME_BLENDING_MODE_SIMPLE,
15 GB_FRAME_BLENDING_MODE_ACCURATE,
16 GB_FRAME_BLENDING_MODE_ACCURATE_EVEN = GB_FRAME_BLENDING_MODE_ACCURATE,
17 GB_FRAME_BLENDING_MODE_ACCURATE_ODD,
18 } GB_frame_blending_mode_t;
19
20 @interface GBViewBase : NSView
21 {
22 @public
23 GB_gameboy_t *_gb;
24 }
25
26 @property (nonatomic) GB_gameboy_t *gb;
27 @property (nonatomic) GB_frame_blending_mode_t frameBlendingMode;
28 @property (nonatomic, strong) NSView *internalView;
29 - (void) flip;
30 - (uint32_t *) pixels;
31 - (void)screenSizeChanged;
32 - (void) createInternalView;
33 - (uint32_t *)currentBuffer;
34 - (uint32_t *)previousBuffer;
35 - (instancetype)mirroredView;
36 @end
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.