mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Move these defines to cocoa_common.h
This commit is contained in:
parent
293eac3019
commit
5733ed9a29
@ -55,24 +55,6 @@ typedef struct cocoa_ctx_data
|
||||
unsigned height;
|
||||
} cocoa_ctx_data_t;
|
||||
|
||||
#if defined(HAVE_COCOATOUCH)
|
||||
#define GLContextClass EAGLContext
|
||||
#define GLFrameworkID CFSTR("com.apple.opengles")
|
||||
#define RAScreen UIScreen
|
||||
|
||||
#ifndef UIUserInterfaceIdiomTV
|
||||
#define UIUserInterfaceIdiomTV 2
|
||||
#endif
|
||||
|
||||
#ifndef UIUserInterfaceIdiomCarPlay
|
||||
#define UIUserInterfaceIdiomCarPlay 3
|
||||
#endif
|
||||
#else
|
||||
#define GLContextClass NSOpenGLContext
|
||||
#define GLFrameworkID CFSTR("com.apple.opengl")
|
||||
#define RAScreen NSScreen
|
||||
#endif
|
||||
|
||||
static enum gfx_ctx_api cocoagl_api = GFX_CTX_NONE;
|
||||
|
||||
#if defined(HAVE_COCOATOUCH)
|
||||
|
@ -24,6 +24,24 @@
|
||||
#include "../../menu/menu_driver.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_COCOATOUCH)
|
||||
#define GLContextClass EAGLContext
|
||||
#define GLFrameworkID CFSTR("com.apple.opengles")
|
||||
#define RAScreen UIScreen
|
||||
|
||||
#ifndef UIUserInterfaceIdiomTV
|
||||
#define UIUserInterfaceIdiomTV 2
|
||||
#endif
|
||||
|
||||
#ifndef UIUserInterfaceIdiomCarPlay
|
||||
#define UIUserInterfaceIdiomCarPlay 3
|
||||
#endif
|
||||
#else
|
||||
#define GLContextClass NSOpenGLContext
|
||||
#define GLFrameworkID CFSTR("com.apple.opengl")
|
||||
#define RAScreen NSScreen
|
||||
#endif
|
||||
|
||||
typedef enum apple_view_type {
|
||||
APPLE_VIEW_TYPE_NONE,
|
||||
APPLE_VIEW_TYPE_OPENGL_ES,
|
||||
|
Loading…
Reference in New Issue
Block a user