1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00
Commit Graph

120 Commits

Author SHA1 Message Date
Lucas OH
ecc876045f Replace some raw pointers by unique_ptr (#16304) 2025-08-06 23:17:34 +02:00
Lars Müller
61551cfc3a Remove irr namespace (#16309) 2025-07-09 10:35:52 +02:00
JosiahWI
0bb87eb1ff Avoid signal-unsafe operations in POSIX signal handler (#16160) 2025-06-01 15:24:32 +02:00
sfan5
1214a1d4a6 Refactor ITextureSource use in main menu (#16135) 2025-05-24 22:49:29 +02:00
grorp
959a8b5b8b Fix black font and menu header when game exits in background (#16131) 2025-05-14 07:23:53 -04:00
Lars Müller
f4285a59ac Purge some dead code (mostly Irrlicht) (#16111)
* Remove obsolete Irrlicht attributes system

* Remove dead GUI element types

* Remove some obsolete Irrlicht headers

* Fix some oopsies from d96f5e1
2025-05-04 16:31:44 +02:00
sfan5
b2c2a6ff47 Rename IShaderConstantSetter 2025-04-21 12:32:29 +02:00
sfan5
e5542e5b02 Remove or restrict some client settings (#15633) 2025-01-08 10:56:45 +01:00
wrrrzr
cca65fde08 Controls: extract init_joysticks (#15597) 2024-12-28 22:05:01 +01:00
sfence
d849d51c2d Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
sfan5
d4daa9fd40 Fix build error due to missing include 2024-10-18 11:59:02 +02:00
DS
e5d321d286 Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
SmallJoker
e3813cf027 Settings: semi-automatic callback cleanup 2024-10-17 19:38:49 +02:00
grorp
5532248cd7 Add missing setting callbacks for display_density_factor (#15273) 2024-10-12 22:34:39 +02:00
grorp
47f199e6cb Avoid cloud jump when switching between mainmenu and loading screen (#15163)
... by using the same Clouds object for both.
The mainmenu clouds already used shaders before. I had to choose between
both or neither, so now both the mainmenu clouds and the loading screen
clouds use shaders if available.
2024-09-16 10:16:27 +02:00
DS
4aec4fbe6f Add support for Tracy profiler (#15113) 2024-09-15 13:47:45 +02:00
SmallJoker
0c4f03d9a5 Reduce include count in headers 2024-09-02 16:09:32 +02:00
Gregor Parzefall
1977517d7a Rename TouchScreenGUI -> TouchControls
to avoid confusion between touchscreen-related settings that affect GUIs
(formspecs) and touchscreen-related settings that affect the touch controls
(TouchControls / formerly TouchScreenGUI)
2024-08-28 21:32:00 +02:00
grorp
4c001bd248 Make button sprites (scrollbar arrows) DPI-aware (#14772) 2024-06-26 15:25:27 +02:00
grorp
a9cca5e76c SDL2: Support highdpi (#14703)
and handle DPI changes at runtime
2024-06-16 17:49:42 +02:00
Gregor Parzefall
f3c91e4f96 Immediately apply gui_scaling changes to IGUISkin 2024-05-26 19:49:48 +02:00
grorp
d5fc040d2d Consistent width for internal scrollbars of formspec elements (#14689)
also: Make sure that very short, wide scrollbars are still usable
2024-05-24 12:10:19 +02:00
grorp
eb432d3da0 Fix some Game members not being freed after some startup errors (#14561) 2024-04-21 15:52:46 +02:00
sfan5
d8190e1c5f Some globals (un-)init fixes 2024-04-20 13:03:42 +02:00
sfan5
4027e08cc8 Print profiler at end of session 2024-04-20 13:03:42 +02:00
grorp
f2b5c35fa2 TouchScreenGUI dehardcoding refactor (#14472) 2024-04-17 15:59:52 +02:00
sfan5
d53ef90a73 Remove Irrlicht versioning 2024-03-27 20:55:48 +01:00
grorp
c8b615acc9 Remove excessive touchscreengui.h includes (#14466) 2024-03-17 14:59:50 +01:00
sfan5
9b97147637 Fix assertion failure in clientlauncher.cpp 2024-03-03 19:11:37 +01:00
sfan5
bb7f57b095 VBO-related optimizations and improvements (#14395) 2024-02-29 17:20:57 +01:00
David Heidelberg
34286d77c7 Allow toggling touchscreen mode at runtime (#14075)
Signed-off-by: David Heidelberg <david@ixit.cz>
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de>
2024-02-22 15:44:49 +00:00
sfan5
e3cc26cb7c Irrlicht support changes (#14383) 2024-02-19 21:14:47 +01:00
paradust7
e2ccd14c05 Allow using VBOs for meshes all the way down to 4 vertices (#14366)
This may improve performance substantially if there are many meshes with "few" vertices that would otherwise be retransmitted to the GPU every frame. In testing, this does not seem to decrease performance, even if as few as 4 vertices are used (e.g. particles).
2024-02-12 23:20:48 +01:00
sfan5
5dbc1d4c08 Move some files to src/server/ 2024-01-27 10:33:32 +01:00
sfan5
89eabb5803 Drop speed tests and some other unused code from clientlauncher.cpp 2024-01-23 22:34:36 +01:00
grorp
a29d3cf074 Save the settings in more cases to avoid losing setting changes (especially on Android) (#14266) 2024-01-23 21:33:27 +01:00
HybridDog
f08e4bb27d Return to the main menu if a shader compilation fails (#14256)
Before this change, if the shaders are broken, only an error message is shown and the player enters the world nonetheless, where he/she sees broken graphics.
2024-01-19 11:51:46 +01:00
Vitaliy
8093044f07 Support OpenGL 3 (#13321) 2024-01-16 21:09:18 +01:00
sfan5
1ba26d67bd Remove excessive includes from porting.h 2024-01-14 13:17:53 +01:00
grorp
b12be0498e Don't enable relative mouse mode if in touchscreen mode (#14118) 2024-01-13 20:01:10 +01:00
Nils Dagsson Moskopp
2f16227302 Set color of scrollbar/dropdown button symbols and checkmarks to white
Before this patch, the symbols were rendered black on dark background.

Previous images were edited like this:

1. The colors were inverted with GIMP's “linear inversion” method.
2. Image files were optimized using “optipng -o7 -zm1-9 -strip all”.

Co-authored-by: ROllerozxa <rollerozxa@voxelmanip.se>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2023-10-27 11:05:00 +02:00
Desour
606215fae9 Move sound_openal and sound_openal_internal into new src/client/sound directory 2023-09-30 18:54:26 +02:00
ROllerozxa
a88e61c2cf Improve UX when no game exists and drop default_game (#13550) 2023-09-17 18:45:28 +01:00
sfan5
033128d8dc Show better description to users when std::bad_alloc happens 2023-09-13 13:58:59 +02:00
Desour
f47b00426a Revert "Get rid of guiroot"
This reverts commit 45e7a80057.
2023-08-24 22:14:44 +02:00
Desour
7e4dccb3b5 Revert "Get rid of global guienv variable"
This reverts commit 16da954bd7.
2023-08-24 22:14:44 +02:00
Desour
16da954bd7 Get rid of global guienv variable
(It can already be accessed via the renderingengine.)
2023-08-14 18:13:47 +02:00
Desour
45e7a80057 Get rid of guiroot
The guienvironment already provides a root gui element, we don't need to add another one.
(For CGUIEnvironment, the env itself is the root element.)
2023-08-14 18:13:47 +02:00
SmallJoker
128d22e6ee GUI: Automatic scaling of checkboxes and scrollbars (#13666)
Mainly helpful on high-DPI screens or when 'gui_scaling' is changed
2023-07-17 20:46:15 +02:00
ROllerozxa
d71872af23 Fix texture paths for system-installed builds
* window icon
* custom touchscreen checkbox sprites
2023-07-03 20:31:03 +02:00