yaze 0.2.0
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#include "imgui_impl_osx.h"
9@interface AppViewController : NSViewController <NSWindowDelegate>
10@end
11#else
12@interface AppViewController : UIViewController <MTKViewDelegate>
13@property(nonatomic) yaze::app::core::Controller *controller;
14@property(nonatomic) UIHoverGestureRecognizer *hoverGestureRecognizer;
15@property(nonatomic) UIPinchGestureRecognizer *pinchRecognizer;
16@property(nonatomic) UISwipeGestureRecognizer *swipeRecognizer;
17@property(nonatomic) UILongPressGestureRecognizer *longPressRecognizer;
18@end
19#endif
20
21@interface AppViewController () <MTKViewDelegate>
22@property(nonatomic, readonly) MTKView *mtkView;
23@property(nonatomic, strong) id<MTLDevice> device;
24@property(nonatomic, strong) id<MTLCommandQueue> commandQueue;
25@end
26
27#endif // __APPLE__
28
29#endif // YAZE_APP_CORE_PLATFORM_APP_VIEW_CONTROLLER_H
Main controller for the application.
Definition controller.h:34