Commit graph

83 commits

Author SHA1 Message Date
alexei-zebra
3b337241f5
draw window decorations with the engine GUI
The bar used to be drawn by the Wayland backend with its own shader,
bitmap font and textures, straight into the engine's GL frame. That
leaked GL state (the batch caches bound textures, so the engine kept
sampling the backend texture and all text turned into solid white
rectangles) and it duplicated fonts and styling.

Now the backend only owns the behaviour: hit zones, cursor shapes,
click interception and the compositor requests (move, resize,
minimize, maximize/restore, close). The bar itself is drawn by the
engine in WindowBar.cpp through the regular Batch2D/Font path, so it
looks like the rest of the UI.

Window gained getTitle(), getDecorationHeight() and
getDecorationHoveredButton(); GLFW keeps the defaults, so X11 and
Windows are unaffected. The backend's decoration drawing (bitmap font,
shader, quad batches) is removed: WaylandBar.cpp went from 630 to 140
lines.

Fixes found while debugging:
- GlStateGuard was defined but never used after the file split, so the
  stretched frame left its texture bound and broke text rendering after
  a window mode change; it is now applied around the cache capture and
  the stretched frame;
- takeScreenshot() now reads the front buffer and restores the read
  buffer afterwards.
2026-10-10 12:23:18 +03:00
MihailRis
6c568e6706 cleanup internal functions 2026-09-01 23:32:44 +03:00
MihailRis
5a8fd3ceab update sub-instance lifetime 2026-08-01 22:32:49 +03:00
MihailRis
a5a2bd0c8a cleanup a bit 2026-07-30 21:31:33 +03:00
MihailRis
7f813d2eb1 add app.start_background_instance (test) 2026-07-29 23:06:02 +03:00
MihailRis
b2ed4b472f feat: client-side '--script' and '--test' basic support 2026-06-01 01:14:30 +03:00
MihailRis
eb453d8170 add audio.recording-enabled setting 2026-05-24 14:15:31 +03:00
MihailRis
11c3f1c5eb add vector fonts support 2026-02-15 20:27:34 +03:00
MihailRis
c7508d6270 Merge branch 'main' into volume-renderer 2026-02-13 02:07:20 +03:00
MihailRis
8750c5b5b9 cleanup 2026-02-12 01:44:25 +03:00
MihailRis
a92efe581f fix: assets access attempts in headless mode leading to segfaults 2026-02-12 01:35:57 +03:00
MihailRis
85c085d7c3 rename 2026-02-11 23:59:56 +03:00
MihailRis
48f5de8adf fix commands execution thread 2026-02-11 23:58:42 +03:00
MihailRis
b200d38e48 add '--stdin-cmd' command line flag 2026-02-11 16:01:46 +03:00
MihailRis
7c0772b5b6 rename 2026-02-11 15:57:38 +03:00
MihailRis
41ba0b8e65 feat: executing commands from stdin 2026-02-11 15:26:53 +03:00
MihailRis
8468ab184d add gui.get_active_frame, set_active_frame & update cursor lock behavior 2026-02-06 14:16:30 +03:00
MihailRis
463098aa1e add gui.create_frame 2026-02-04 13:10:49 +03:00
MihailRis
0cf7d9b1ed add background assets loader 2026-01-23 22:40:57 +03:00
MihailRis
d5f8fed633 add AssetsManagement 2026-01-23 12:48:54 +03:00
MihailRis
37350a10be remove pages loader from GUI class 2026-01-07 01:36:41 +03:00
MihailRis
6cdd6b833c feat: debugging server does not require network permission now 2026-01-06 23:22:13 +03:00
MihailRis
b3ae6eb59a add 'record-audio' permission 2026-01-05 16:40:00 +03:00
MihailRis
0af072a129 add 'network' permission 2025-12-07 01:26:48 +03:00
MihailRis
7eeac66abf add 'write-to-user' permission & refactor checking for writeability 2025-12-07 00:08:57 +03:00
MihailRis
bcfcd9ca76 fix headless mode fatal error in some systems 2025-11-29 18:29:04 +03:00
MihailRis
0f0e00cdde add 'audio.input-device' setting 2025-11-21 22:32:19 +03:00
MihailRis
bcfdb6196a add 'istoplevel' argument to input.add_callback 2025-11-16 14:25:16 +03:00
MihailRis
0e6fb878bf add app.reset_content 'non_reset_packs' optional argument 2025-11-09 23:04:50 +03:00
MihailRis
7fc3703ad2 feat: refresh on demand in menu (adaptive framerate) 2025-11-09 22:22:24 +03:00
MihailRis
17ffa73ce7 refactor: move and rename EnginePaths 2025-11-09 20:13:59 +03:00
MihailRis
3b583d4dd6 refactor: Engine, EnginePaths, move CoreParameters to new header 2025-11-09 19:56:46 +03:00
MihailRis
01bf474a2b cleanup Engine.cpp a bit 2025-11-09 19:37:40 +03:00
MihailRis
4bafad708e move window-related code from Engine.cpp to WindowControl 2025-11-09 19:09:35 +03:00
MihailRis
87ff77a73f add project start application script 2025-11-09 18:26:36 +03:00
MihailRis
c565e9897f feat: go back in menu on Escape pressed 2025-11-05 02:13:32 +03:00
MihailRis
9372a5226e add 'step' and 'resume' commands 2025-10-07 21:53:46 +03:00
MihailRis
5972bc769b add 'set-breakpoint', 'remove-breakpoint' commands 2025-10-07 21:07:02 +03:00
MihailRis
95f30da49b add engine pause mode 2025-10-07 18:02:06 +03:00
MihailRis
3fef284a02 test debugger commands 2025-10-06 01:54:35 +03:00
MihailRis
80cd187c6f add '--dbg-server' command-line argument & add debugging server draft 2025-10-05 23:54:29 +03:00
ChancellorIkseew
b30b19e836
Add borderless window mode (from tasks) (#630) 2025-09-30 23:53:15 +03:00
MihailRis
a621b179d3 add 'do-trace-shaders' setting and fix shaders recompiling 2025-08-31 18:14:05 +03:00
MihailRis
c8d760e83e update project script methods, replace project script with project client script 2025-08-18 21:20:18 +03:00
MihailRis
9fcff65cca cleanup 2025-08-07 22:37:40 +03:00
MihailRis
0a02d3fbec add on_screen_change project script event & fix UIDocument::rebuildIndices & move menu background to project script 2025-08-07 22:14:52 +03:00
MihailRis
4e5199d89a feat: lights debug mode 2025-04-29 15:59:52 +03:00
MihailRis
6164374666 feat: projects & replace builtins.list with 'base_packs' project property 2025-04-22 21:46:10 +03:00
MihailRis
5253be6c56 feat: custom languages syntax (WIP) 2025-04-13 00:19:38 +03:00
MihailRis
62518f0658 fix headless mode 2025-04-02 18:08:18 +03:00