mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 22:43:41 +00:00
(Apple) Cleanups
This commit is contained in:
parent
68902c9d94
commit
0e2ed7c746
@ -191,21 +191,12 @@ void apple_display_alert(const char *message, const char *title)
|
||||
static RAGameView* g_instance;
|
||||
|
||||
#ifdef OSX
|
||||
#include <OpenGL/CGLTypes.h>
|
||||
#include <OpenGL/OpenGL.h>
|
||||
|
||||
void *nsview_get_ptr(void)
|
||||
{
|
||||
return g_instance;
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "../../gfx/video_viewport.h"
|
||||
#include "../../gfx/video_monitor.h"
|
||||
#include "../../gfx/video_context_driver.h"
|
||||
#include "../../gfx/drivers/gl_common.h"
|
||||
#include "../../runloop.h"
|
||||
|
||||
/* forward declarations */
|
||||
void apple_gfx_ctx_update(void);
|
||||
void *glkitview_init(void);
|
||||
|
@ -17,9 +17,13 @@
|
||||
//#define HAVE_NSOPENGL
|
||||
|
||||
#include <CoreGraphics/CGGeometry.h>
|
||||
#ifdef OSX
|
||||
#if defined(OSX)
|
||||
#include <OpenGL/CGLTypes.h>
|
||||
#include <OpenGL/OpenGL.h>
|
||||
#include <AppKit/NSScreen.h>
|
||||
#include <AppKit/NSOpenGL.h>
|
||||
#elif defined(IOS)
|
||||
#include <GLKit/GLKit.h>
|
||||
#endif
|
||||
#import "../../apple/common/RetroArch_Apple.h"
|
||||
#include "../video_context_driver.h"
|
||||
@ -55,16 +59,7 @@
|
||||
#define RAScreen NSScreen
|
||||
#endif
|
||||
|
||||
#if defined(OSX)
|
||||
|
||||
/* RAGameView is a container on iOS;
|
||||
* on OSX these are both the same object
|
||||
*/
|
||||
#define g_view g_instance
|
||||
|
||||
#elif defined(IOS)
|
||||
|
||||
#include <GLKit/GLKit.h>
|
||||
#if defined(IOS)
|
||||
#define ALMOST_INVISIBLE (.021f)
|
||||
static GLKView *g_view;
|
||||
static UIView *g_pause_indicator_view;
|
||||
|
Loading…
x
Reference in New Issue
Block a user