(Apple) Cleanups

This commit is contained in:
Twinaphex 2015-04-12 16:55:50 +02:00
parent 68902c9d94
commit 0e2ed7c746
2 changed files with 6 additions and 20 deletions

View File

@ -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);

View File

@ -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;