Commit Graph

40 Commits

Author SHA1 Message Date
Dennis Brakhane 2ebee47c4b allocate application on heap instead of stack and delete it
This prevents problems with Vulkan debug layers that don't like
Vulkan calls to happen during C++ app shutdown.
2026-01-19 14:16:17 +01:00
Dennis Brakhane d16e42e5c2 add clipboard support for SDL2 and copy-paste for Editor (#1491) 2026-01-13 15:23:41 +01:00
Stanislav Denisov 32fbee5613 Implement persistence for the editor window's size (#1336)
Implement persistence for the window size
2025-11-26 16:16:30 +01:00
Turánszki János acf8006e68 compile optimizations (#1301)
- removed exceptions
- removed runtime security checks from release builds
- disabled runtime type information
2025-11-17 08:00:19 +01:00
Dennis Brakhane 88f9d899ad linux: make crash_handler a bit more robust (#1283) 2025-11-04 17:00:05 +01:00
Dennis Brakhane 764fd0c5ca fix exit button on Windows, and in edge cases on Linux (#1262)
After #1258, the exit button (not close) didn't work at all in Windows
and on Linux it didn't actually cause the application to close if an
untitled file had been saved.

Rewrite the logic to work both for close as well as exit.
2025-10-30 07:09:46 +01:00
Martin Knecht ff9a160535 Add question to SDL to mirror windows behaviour (#1258)
* Add question to SDL to mirror windows behaviour

* don't exit until saving is done

* fixes

---------

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
Co-authored-by: Dennis Brakhane <brakhane@gmail.com>
2025-10-29 06:53:38 +01:00
Turánszki János 7e0d2f807e fix for application exe cutomization on linux (#1164) 2025-07-12 10:00:35 +02:00
Dennis Brakhane 282b81c3d9 replace default reference captures, fix missing calls (#1153)
* forAll -> forEach

* replace default reference captures with more specific ones

* fix missing calls in fixXYZ/forEachSelectedWithRefresh
2025-07-08 17:08:59 +02:00
Turánszki János a3c0ce083d editor theme and config fixes 2025-06-25 08:50:56 +02:00
Turánszki János 19e47ef096 editor: remove trailing whitespace from padded app name (#1130) 2025-06-14 08:19:52 +02:00
Turánszki János 030413c9cc Project creator (#1118) 2025-06-07 17:38:36 +02:00
Turánszki János ef16be5f41 removed mostly win32 code clutter 2025-06-03 19:34:47 +02:00
Dennis Brakhane a1224dbc25 linux: don't use getText() in crash handler (#1104)
don't use getText() in crash handler

getText() allocates memory which is a big no no in a signal handler.
Instead, use an internal function that calls us for each entry so we
can write it to the crash log.

This is ugly, but I can't think of a better solution atm.
2025-05-12 13:01:51 +02:00
Dennis Brakhane 3fae3df694 linux: improve crash handling (#1103)
linux: improve crash log and crash handling

* add device info to crash log

* add contents of backlog to the crash log

* use abort() instead of exit()

calling exit could cause problems because of exithandlers, abort is
safer.
2025-05-11 15:25:07 +02:00
Turánszki János 76549fa85f linux: added editor drag and drop file support 2025-03-30 18:35:44 +02:00
Turánszki János 13921bc1b0 wait for job system threads to shut down before exiting 2025-01-16 09:59:43 +01:00
Dennis Brakhane 17bf75fd35 linux: add simple crash handler that dumps stacktrace (#1020)
Since the Linux version seems much more unstable than the Windows one,
having more information where the crash occured will help with figuring
out where the problems are.

This commit adds a simple crash handler that dumps out the stacktrace,
it's only supported on Linux.
2025-01-16 08:42:40 +01:00
Dennis Brakhane 7f60d7a35b main_sdl2: don't allocate Editor object on stack (#1008)
It became too big for the stack, causing segmentation faults.

Also fix this for the samples and tests.
2025-01-11 09:21:45 +01:00
Turánszki János 52b84918dd some editor updates 2024-10-15 07:53:43 +02:00
Dennis Brakhane 5e27c926f8 fix SDL_Init check (#908)
make_sdlsystem always returns a valid int pointer containing the result
of SDL_Init. SDL_Init is 0 on success, and a negative int on failure.
2024-08-05 05:54:40 +02:00
Turánszki János 3eb4c6cc37 resource manager hot reload (#864) 2024-06-19 07:28:00 +02:00
Turánszki János 6b41ec3b65 Removing UWP support (#858) 2024-06-07 05:59:36 +02:00
Turánszki János 49def1c269 Localization (#654) 2023-03-25 20:28:12 +01:00
Matteo De Carlo b09d30a32f avoid double SDL_Quit() (#625)
`SDL_Quit` is already called by the smart pointer de-constructor

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
2023-01-17 17:07:32 +01:00
Turánszki János c8139da6b6 Editor full screen toggle (#558)
* Editor full screen toggle

* fix
2022-09-06 12:45:16 +02:00
Turánszki János 64babc8fcd Config file support (#517) 2022-08-20 18:32:16 +02:00
Turánszki János 90fbbba9ba Text Input Caret (#500) 2022-08-01 18:25:15 +02:00
Megumumpkin 26a9d5dd5e SDL Input Refactor (#406)
* SDL Input Refactor (Initial Edit)

* SDL Input Refactor - IMGUI Text Input Fix

* SDL Input Refactor - wiGUI Text Input Fix

* SDL Input Refactor - Pruning Includes

* SDL Input Refactor - Fix Includes

* SDL Input Refactor - Fix Compiler Error (Windows)

* SDL Input Refactor - Fix Compile Error (2)

* SDL Input Refactor - SDL Version Checking For LED

* Trying out Sniper SDK build system

* SDL Input Refactor - Processing Design Changes

* SDL Input Refactor - Separate Steam Deck Build

* SDL Input Refactor - Separate Steam Deck (2)

* Steam SDK CI Build - Change Package Name & Reduct

* Steam SDK CI - Straight up building, no apt update
2022-03-29 11:26:34 +02:00
Turánszki János 74cb74d3c9 version 0.60 (#367)
- namespace refactor (example: wiGraphics:: -> wi::graphics)
  - provided namespace compatibility macro for old user code: WICKEDENGINE_BACKWARDS_COMPATIBILITY_0_59
- resource manager will return `Resource` instead of `shared_ptr<Resource>` objects
- MAD shader optimizations
- implemented alpha to coverage with alpha tested materials when MSAA is enabled
- alpha testing fix with transparent shadow maps
- TLAS and scene buffers will be recreated less frequently when things get added/removed from the scene
2021-12-03 21:22:27 +01:00
Turánszki János 16d9a8de74 common improvements (#366)
- std container replacements for vector, unordered_map, unordered_set
  - unordered_map and unordered_set replaced with ska::flat_hash_map
  - vector replacement is still std::
- unordered_map performance test (std:: vs ska::)
- backlog improvements
- wiArchive improvements
- editor: added option to dump scene to C++ header file
- common improvements, refactors
2021-11-28 22:12:05 +01:00
Matteo De Carlo 08c1046214 Added Focus events on SDL editor (#363)
* Added Focus events on SDL editor

* Shaders are symlinked instead of copied in the build folder (cmake)
2021-11-25 16:50:09 +01:00
Matteo De Carlo af97739b61 HiDPI support on SDL2 (#351)
linux: works only with wayland backend, can be used with SDL_VIDEODRIVER=wayland enviroment variable set.
It's possible that it works also on other platforms when using the SDL backend.
2021-11-11 15:38:05 +01:00
Matteo De Carlo 1cf8585d37 Resizable windows on SDL2 (linux) (#350)
Fixes #349
2021-11-08 21:38:03 +01:00
sashikknox 19006f5772 - add Editor icon for SDL window (builtin) (#319) 2021-09-22 11:48:28 +02:00
Megumumpkin d451a107be Editor text input fix for Linux (#279)
* Editor text input fix for Linux

* SDL mouse delta scroll fix

Co-authored-by: Megumumpkin <megumumpkin@gmail.com>
2021-07-11 18:44:57 +02:00
Turanszki Janos f2b410f033 editor linux: fix default window size #239 2021-02-24 18:40:12 +01:00
Turánszki János 666dd4ff03 platform code refactor (#242) 2021-02-23 00:29:29 +01:00
Megumumpkin fc63270b6e SDL Keyboard Input, Unix File Loading and SDL Window Config (#232)
* SDL2 and Unix fix

SDL2 keyboard input, Unix filesystem fix, and SDL2 editor window config, CMake cache gitignore

* Adding comments to the SDL2 keycode fix

For a better understanding

* Slimming down SDL Unix path translation

* Static pathfile compile fix

More pathfile code fix for the compile to work

* Re: Static pathfile compile fix
2021-02-07 19:55:29 +01:00
Matteo De Carlo 3cd9e77889 WIP: Initial linux support using SDL (#136)
* Initial linux support using SDL

* fixed link error and gitignore

* fix in working directory initialization (windows side)

* Added README_Linux and fixed a few compilation issues in ubuntu

* Rename main to main_Windows in Tests

* Better default renderering backend selector

* Added backlog terminal output on linux

* added asserts on all missing vulkan function call results

* added portable file dialogs

also small tests update and cleanup

* Added Editor compile target

* linux ci

* linux ci

* cmake update

* cmake update?

* cmake

* Editor_Windows fix

* build test

* make

* build tools?

* update

* ubuntu 20.04

* fix?

* cmake

* build

* build?

* package linux build

* updates, bump version

* backslash to forward slash, eof newlines, add portable-file-dialogs license

* xcopy needs backslash duh; update readme;

* copy fix

* updated readme

* readme update

* updated readme

* updated readme

* fix incorrect file encoding linux

* paint tool fix

* linux: add missing shaders

* packaging update

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
Co-authored-by: Turanszki Janos <turanszkij@gmail.com>
2020-10-05 00:03:22 +02:00