mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
add cocoa in ogl plugin
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@976 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -37,10 +37,12 @@
|
||||
#if !defined(OSX64)
|
||||
#include <GL/glxew.h>
|
||||
#else
|
||||
#undef BOOL
|
||||
#include <GL/glew.h>
|
||||
#include "cocoaGL.h"
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <OpenGL/gl.h>
|
||||
|
||||
#else
|
||||
@ -88,21 +90,24 @@ inline unsigned long timeGetTime()
|
||||
#undef I_NEED_OS2_H
|
||||
#undef BOOL
|
||||
|
||||
#if !defined(__APPLE__)
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/extensions/xf86vmode.h>
|
||||
//#include <gtk/gtk.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef struct {
|
||||
Display *dpy;
|
||||
int screen;
|
||||
Window win;
|
||||
#if defined(OSX64)
|
||||
|
||||
NSWindow *cocoaWin;
|
||||
NSOpenGLContext *cocoaCtx;
|
||||
#else //linux
|
||||
Window win;
|
||||
Display *dpy;
|
||||
GLXContext ctx;
|
||||
XSetWindowAttributes attr;
|
||||
Bool fs;
|
||||
|
Reference in New Issue
Block a user