mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 15:40:02 +00:00
790ee70b36
almost working, for some reason the event handler creates 2 instances instead of one if anyone can see why from the code I'll be like SOOOO happy:P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1798 8ced0084-cf51-0410-be5f-012b33b47a6e
50 lines
983 B
C++
50 lines
983 B
C++
#ifndef _X11WINDOW_H
|
|
#define _X11WINDOW_H
|
|
|
|
#include "GLWindow.h"
|
|
#if defined HAVE_X11 && HAVE_X11
|
|
#include <GL/glxew.h>
|
|
#include <GL/gl.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
#include <X11/Xutil.h>
|
|
#include <X11/keysym.h>
|
|
|
|
#include <X11/extensions/xf86vmode.h>
|
|
#include <X11/XKBlib.h>
|
|
|
|
class X11Window : public GLWindow
|
|
{
|
|
public:
|
|
int screen;
|
|
Window win;
|
|
Display *dpy;
|
|
GLXContext ctx;
|
|
XSetWindowAttributes attr;
|
|
Bool fs;
|
|
Bool doubleBuffered;
|
|
XF86VidModeModeInfo deskMode;
|
|
|
|
virtual void SwapBuffers();
|
|
virtual void SetWindowText(const char *text);
|
|
virtual bool PeekMessages();
|
|
virtual void Update();
|
|
virtual bool MakeCurrent();
|
|
|
|
static bool valid() { return true; }
|
|
~X11Window();
|
|
X11Window(int _iwidth, int _iheight);
|
|
static sf::Key::Code KeysymToSF(KeySym Sym);
|
|
private:
|
|
void ProcessEvent(XEvent WinEvent);
|
|
|
|
};
|
|
#else
|
|
class X11Window : public GLWindow
|
|
{
|
|
public:
|
|
X11Window(int _iwidth, int _iheight) {}
|
|
};
|
|
#endif
|
|
#endif
|