summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/GLInterface/X11_Util.h
blob: be187906bbfa5ebc8a6972c51d042d1f04b078bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.

#pragma once

#include <string>
#include <X11/keysym.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>

#if USE_EGL
class cXInterface
{
private:
	void XEventThread();
public:
	bool ServerConnect(void);
	bool Initialize(void *config, void *window_handle);
	void *EGLGetDisplay(void);
	void *CreateWindow(void);
	void DestroyWindow(void);
	void UpdateFPSDisplay(const std::string& text);
	void SwapBuffers();
};
#else
class cX11Window
{
private:
	void XEventThread();
public:
	void CreateXWindow(void);
	void DestroyXWindow(void);
};
#endif