17 #ifndef __COCOA_COMMON_METAL_H 18 #define __COCOA_COMMON_METAL_H 20 #include <Foundation/Foundation.h> 23 #include "../../menu/menu_setting.h" 24 #include "../../menu/menu_driver.h" 27 #ifdef HAVE_CORELOCATION 28 #include <CoreLocation/CoreLocation.h> 40 #import <MetalKit/MetalKit.h> 61 - (
void)setCursorVisible:(
bool)v;
66 - (
bool)setDisableDisplaySleep:(
bool)disable;
71 #if defined(HAVE_COCOATOUCH) 72 #include <UIKit/UIKit.h> 74 #ifdef HAVE_AVFOUNDATION 75 #import <AVFoundation/AVCaptureOutput.h> 85 @property (nonatomic) NSMutableArray* sections;
86 @property (nonatomic)
BOOL hidesHeaders;
88 @property (nonatomic) UILabel *osdmessage;
90 - (
id)initWithStyle:(UITableViewStyle)style;
91 - (
id)itemForIndexPath:(NSIndexPath*)indexPath;
97 char orientations[32];
98 unsigned orientation_flags;
99 char bluetooth_mode[64];
100 } apple_frontend_settings_t;
103 @interface CocoaView : UIViewController<CLLocationManagerDelegate,
104 AVCaptureAudioDataOutputSampleBufferDelegate>
108 @interface RetroArch_iOS : UINavigationController<UIApplicationDelegate,
111 @property (nonatomic) UIWindow*
window;
112 @property (nonatomic) NSString* documentsDirectory;
114 @property (nonatomic)
int menu_count;
118 - (
void)showGameView;
120 - (
void)supportOtherAudioSessions;
122 - (
void)refreshSystemConfig;
123 - (
void)mainMenuPushPop: (
bool)pushp;
124 - (
void)mainMenuRefresh;
129 #elif defined(HAVE_COCOA_METAL) 130 #include <AppKit/AppKit.h> 133 #ifdef HAVE_CORELOCATION 134 <CLLocationManagerDelegate>
138 #if !defined(HAVE_COCOA_METAL) 146 #define BOXSTRING(x) [NSString stringWithUTF8String:x] 147 #define BOXINT(x) [NSNumber numberWithInt:x] 148 #define BOXUINT(x) [NSNumber numberWithUnsignedInt:x] 149 #define BOXFLOAT(x) [NSNumber numberWithDouble:x] 151 #if __has_feature(objc_arc) 152 #define RELEASE(x) x = nil 153 #define BRIDGE __bridge 154 #define UNSAFE_UNRETAINED __unsafe_unretained 156 #define RELEASE(x) [x release]; \ 159 #define UNSAFE_UNRETAINED id< ApplePlatform > apple_platform
Definition: ui_cocoa.m:41
Definition: cocoa_common.m:59
apple_frontend_settings_t apple_frontend_settings
Definition: ui_cocoatouch.m:106
GLenum GLuint id
Definition: glext.h:6233
Definition: cocoa_common_metal.h:36
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
Definition: cocoa_common_metal.h:32
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
id renderView
renderView returns the current render view based on the viewType
Definition: cocoa_common_metal.h:50
Definition: cocoa_common_metal.m:46
Definition: cocoatouch_menu.m:582
bool hasFocus
isActive returns true if the application has focus
Definition: cocoa_common_metal.h:53
Definition: cocoa_common_metal.h:47
Definition: video_driver.h:638
Definition: cocoa_common_metal.h:33
Definition: cocoa_common_metal.h:35
enum apple_view_type apple_view_type_t
CocoaView * get()
Definition: cocoa_common.m:70
Definition: ui_cocoatouch.m:328
unsigned int BOOL
Definition: gctypes.h:51
Definition: cocoa_common_metal.h:34
apple_view_type
Definition: cocoa_common_metal.h:31
apple_view_type_t viewType
Definition: cocoa_common_metal.h:55
void get_ios_version(int *major, int *minor)
Definition: ui_cocoatouch.m:108