2013-03-28 02:18:07 +00:00
|
|
|
// Copyright (C) 2013 Scott Moreau <oreaus@gmail.com>
|
2014-02-10 18:54:46 +00:00
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2013-03-28 02:18:07 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2013-03-28 02:18:07 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
#include <string>
|
2013-03-28 02:18:07 +00:00
|
|
|
#include <wayland-client.h>
|
|
|
|
#include <wayland-cursor.h>
|
2014-02-19 01:56:29 +00:00
|
|
|
#include <wayland-egl.h>
|
2013-03-28 02:18:07 +00:00
|
|
|
#include <xkbcommon/xkbcommon.h>
|
|
|
|
|
2014-02-17 04:51:41 +00:00
|
|
|
#define MOD_SHIFT_MASK 0x01
|
|
|
|
#define MOD_ALT_MASK 0x02
|
|
|
|
#define MOD_CONTROL_MASK 0x04
|
2013-03-28 02:18:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
class cWaylandInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool ServerConnect(void);
|
|
|
|
bool Initialize(void *config);
|
|
|
|
void *EGLGetDisplay(void);
|
|
|
|
void *CreateWindow(void);
|
|
|
|
void DestroyWindow(void);
|
2014-03-12 19:33:41 +00:00
|
|
|
void UpdateFPSDisplay(const std::string& text);
|
2013-03-28 02:18:07 +00:00
|
|
|
void ToggleFullscreen(bool fullscreen);
|
2014-01-19 16:11:07 +00:00
|
|
|
void SwapBuffers();
|
2013-03-28 02:18:07 +00:00
|
|
|
};
|