yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
view_controller.h
Go to the documentation of this file.
1#ifndef YAZE_APP_CORE_PLATFORM_VIEW_CONTROLLER_H
2#define YAZE_APP_CORE_PLATFORM_VIEW_CONTROLLER_H
3
4#ifdef __APPLE__
5#include <TargetConditionals.h>
6
7#if TARGET_OS_OSX
8#ifdef __OBJC__
9@interface AppViewController : NSViewController <NSWindowDelegate>
10@property(nonatomic) yaze::Controller *controller;
11@end
12#endif
13#else
14#ifdef __OBJC__
15@interface AppViewController : UIViewController <MTKViewDelegate>
16@property(nonatomic) yaze::Controller *controller;
17@property(nonatomic) UIHoverGestureRecognizer *hoverGestureRecognizer;
18@property(nonatomic) UIPinchGestureRecognizer *pinchRecognizer;
19@property(nonatomic) UISwipeGestureRecognizer *swipeRecognizer;
20@property(nonatomic) UILongPressGestureRecognizer *longPressRecognizer;
21@end
22#endif
23#endif
24
25#ifdef __OBJC__
26@interface AppViewController () <MTKViewDelegate>
27@property(nonatomic, readonly) MTKView *mtkView;
28@property(nonatomic, strong) id<MTLDevice> device;
29@property(nonatomic, strong) id<MTLCommandQueue> commandQueue;
30@end
31#endif
32
33#endif // __APPLE__
34
35#endif // YAZE_APP_CORE_PLATFORM_VIEW_CONTROLLER_H
Main controller for the application.
Definition controller.h:24