mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-23 02:49:46 +00:00
split the rest of the Wayland backend
WaylandWindow.cpp kept the window class with all methods defined in place, the decorations, the free event listeners and the initialization in one file. Now: - WaylandWindow.hpp: the class declaration; - WaylandWindow.cpp: surface, EGL, resize and frame pacing; - WaylandBar.cpp: the window decorations (bar, font, buttons, dragging, edge resizing); - WaylandListeners.cpp/.hpp: the free Wayland event handlers; - WaylandInit.cpp: wayland_window_initialize. No functional change.
This commit is contained in:
parent
cf92ebba76
commit
b934e033b3
9 changed files with 2029 additions and 1954 deletions
|
|
@ -15,9 +15,30 @@
|
|||
#include "xdg-decoration-unstable-v1-client-protocol.h"
|
||||
#include "xdg-shell-client-protocol.h"
|
||||
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include <wayland-egl.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <poll.h>
|
||||
#include <stack>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
const wl_registry_listener& registry_listener();
|
||||
const wl_data_device_listener& data_device_listener();
|
||||
const xdg_surface_listener& surface_listener();
|
||||
const xdg_toplevel_listener& toplevel_listener();
|
||||
|
||||
GLuint compile_program(const char* vertexSource, const char* fragmentSource);
|
||||
|
||||
extern debug::Logger waylandLogger;
|
||||
|
||||
struct WaylandState {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue