mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00: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:
parent
62b49ea2d6
commit
a7be7689c1
5 changed files with 43 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue