Commit graph

42 commits

Author SHA1 Message Date
alexei-zebra
1e689e88b1
add native Wayland window backend
Wayland support was missing a proper windowing layer: the GLFW backend
leaves the known platform gaps (cursor themes, window icon, window
position, fullscreen output selection).

The new backend talks to the compositor directly:
- xdg-shell, EGL, xkbcommon (keyboard, repeat, layout) instead of GLFW;
- cursors through wp_cursor_shape_manager_v1, so no cursor theme lookup
  is required and no "standard cursor shape unavailable" errors appear;
- window icon and title are drawn by the engine itself, since Wayland
  has no window icon protocol and GNOME provides no server-side
  decorations;
- fullscreen requests the current output (set_fullscreen with NULL), so
  the window no longer jumps to another monitor;
- interactive resize presents a cached frame scaled to the new size
  while the pointer is down and refreshes the real frame when the drag
  pauses, keeping the window glued to the cursor.

libdecor is not used: libdecor_frame_commit() redraws the whole
decoration and acks the configure in the same call, and mutter sends
200-330 configures per second during an interactive resize, so the
decoration was redrawn hundreds of times per second (measured: 2 s of
work per second, loop stalls up to 6 s). The decorations are drawn by
the engine instead, which measured 2.3 ms average configure-to-present
latency during a real drag.

GLFW stays the backend for X11 and Windows; VOXEL_WINDOW_BACKEND=x11
forces it on Wayland sessions.
2026-10-10 12:23:18 +03:00
MihailRis
8962042627 complete the rename of voxelengine to voxelcore 2026-10-10 10:54:36 +03:00
nogitsune-youkai
d062c28376
Fix: correct luajit lookup on Windows (#1006)
* Fix: correct luajit paths

* fixed comment

* removed unnecessary comments
2026-10-02 17:23:49 +03:00
dagger
a23c4d4159 add crypto library 2026-08-22 15:22:55 +07:00
NigthLier
68f4c3c55e Added Clion build section 2026-05-05 12:58:11 +03:00
MihailRis
b1356ca561 add freetype library 2026-02-13 13:14:13 +03:00
MihailRis
9653b18143 fix: unknown warning option in clang build 2025-11-17 20:18:02 +03:00
MihailRis
48b8c3e9b4 fix 2025-10-10 23:22:47 +03:00
MihailRis
24931770d3
fix warnings (#648)
* fix unknown command line argument

* fix warnings settings for gcc

* fix -Wzero-as-null-pointer-constant

* revert CMakeLists.txt
2025-10-10 23:12:01 +03:00
MihailRis
8f3e5e880c
temporary disable -Wsign-conversion 2025-10-10 14:32:07 +03:00
MihailRis
8e52ad4e3b
enable more clang/gcc warnings 2025-10-10 13:58:29 +03:00
MihailRis
31f3c2de6a
disable msvc warning C4457 2025-10-10 13:50:50 +03:00
MihailRis
c6c08e1efb
add -Wpedantic 2025-10-10 13:31:36 +03:00
MihailRis
b55879116f
disable msvc warning C4459 2025-10-10 13:20:18 +03:00
MihailRis
5bdf8f8065 remove -Og flag from debug build 2025-04-20 00:14:42 +03:00
MihailRis
3d22de761f fix compiler warnings (GCC + Clang) 2025-03-20 22:04:29 +03:00
Ygrik2003
6c3d2d0907
Merge pull request #435 from Ygrik2003/Refactoring-cmake
Refactoring cmake
2025-03-20 20:59:19 +03:00
Stepanov Igor
bb15d17892 add cmake-format.py and formating all cmake files 2025-01-09 16:32:54 +03:00
MihailRis
d73c0b21f5 fix cmake in linux 2024-12-27 07:00:30 +03:00
Stepanov Igor
59933943b8 Add comment 2024-12-25 18:23:02 +03:00
Stepanov Igor
c18c210fe0 Return old behavior 2024-12-25 18:21:46 +03:00
Stepanov Igor
398206653b Try Fix 2024-12-25 17:47:18 +03:00
Stepanov Igor
17460be026 Fix builds 2024-12-25 03:07:14 +03:00
Stepanov Igor
e7d36ef4f5 Fix static compilation 2024-12-25 02:43:59 +03:00
Stepanov Igor
5eab58fcc5 Fix comment 2024-12-22 03:39:20 +03:00
Stepanov Igor
d6997640b6 Refactoring and try move to pwsh for clang 2024-12-22 03:24:11 +03:00
Stepanov Igor
b458df42de Fik lib luajit 2024-12-22 03:06:58 +03:00
Stepanov Igor
e34a7bb117 Fik lib ext for clang 2024-12-22 02:00:43 +03:00
Stepanov Igor
d0e8f43f14 Fix lua linking 2024-12-22 01:37:58 +03:00
Stepanov Igor
84887d26ec Refactoring CmakePresets for windows github actions and refactoring README 2024-12-20 17:16:31 +03:00
Stepanov Igor
7547152ab2 Fix resources linking 2024-12-15 02:17:27 +03:00
Stepanov Igor
dccda99364 Fix usage vcpkg for windows and fix readme, remove vcpkg usage flag from cmake 2024-12-15 01:56:02 +03:00
MihailRis
12c10d1ad1
Add Windows build with Clang (#411)
after 72 commits and 24 hours
2024-12-14 03:09:25 +03:00
MihailRis
27acc1d8b1 rename voxel_engine.cpp to main.cpp 2024-12-07 00:12:42 +03:00
MihailRis
cb925d005c add libcurl 2024-11-10 22:37:28 +03:00
MihailRis
d0dbe549a1 remove libspng mentions from Windows build 2024-10-21 13:58:54 +03:00
MihailRis
6e07ea1a44 update CMakeLists.txt 2024-10-21 13:52:59 +03:00
MihailRis
659f1fedc8 fix src/CMakeLists.txt for Windows 2024-08-12 01:13:26 +03:00
MihailRis
29b1299b87 update src/CMakeLists.txt 2024-08-12 01:07:18 +03:00
MihailRis
59afd4de27 update src/CMakeLists.txt 2024-08-12 00:59:51 +03:00
MihailRis
d021240a32 fix lua include directory 2024-08-12 00:39:36 +03:00
MihailRis
2b30ab966b add test and src subdirectories 2024-08-12 00:35:23 +03:00