2014-02-10 18:54:46 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2012-12-26 18:12:26 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2012-12-26 18:12:26 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
#include <string>
|
2012-12-26 18:12:26 +00:00
|
|
|
#include <X11/keysym.h>
|
2014-02-19 01:56:29 +00:00
|
|
|
#include <X11/Xlib.h>
|
2013-04-20 17:19:03 +00:00
|
|
|
#include <X11/Xutil.h>
|
2012-12-26 18:12:26 +00:00
|
|
|
|
2013-04-20 17:19:03 +00:00
|
|
|
#if USE_EGL
|
|
|
|
class cXInterface
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
void XEventThread();
|
|
|
|
public:
|
|
|
|
bool ServerConnect(void);
|
2014-01-24 02:41:07 +00:00
|
|
|
bool Initialize(void *config, void *window_handle);
|
2013-04-20 17:19:03 +00:00
|
|
|
void *EGLGetDisplay(void);
|
|
|
|
void *CreateWindow(void);
|
|
|
|
void DestroyWindow(void);
|
2014-03-12 19:33:41 +00:00
|
|
|
void UpdateFPSDisplay(const std::string& text);
|
2014-01-19 16:11:07 +00:00
|
|
|
void SwapBuffers();
|
2013-04-20 17:19:03 +00:00
|
|
|
};
|
|
|
|
#else
|
2012-12-26 18:12:26 +00:00
|
|
|
class cX11Window
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
void XEventThread();
|
|
|
|
public:
|
|
|
|
void CreateXWindow(void);
|
|
|
|
void DestroyXWindow(void);
|
|
|
|
};
|
|
|
|
#endif
|