Aaron van Geffen
12ab9195b6
Rework EntityRegistry into class
2025-08-31 14:29:36 +02:00
Aaron van Geffen
5b8fedd5b2
Rework Map.h includes (remove transitive header includes)
2025-09-04 22:16:53 +02:00
Aaron van Geffen
013fcb3798
Split off MapSelection.h from Map.h
2025-09-04 21:57:36 +02:00
mix
fff4d44b12
Fix glitch and crash panning viewport partially outside game window ( #25054 )
2025-08-30 12:48:12 +00:00
Michał Janiszewski
763242b14d
Add ability to scroll the map with gamepad stick
2025-07-03 22:48:59 +02:00
mix
8d2309a4c2
Change magic numbers to constants in Viewport::Invalidate function
2025-06-13 21:13:34 +01:00
mix
92dd81b9ea
Change tile related magic numbers to consts in map animation code
2025-06-13 21:13:34 +01:00
mix
8a5145678c
Pass viewport through map animation invalidation functions
2025-06-13 21:13:33 +01:00
mix
e464b2ebe7
Don't invalidate map animations for tiles that are not in view
2025-06-13 21:13:33 +01:00
Matt
fb834e64aa
Merge pull request #24474 from Harry-Hopkinson/more-efficiently-search-viewports
...
Fix #24426 : More efficiently search viewports.
2025-05-29 21:24:14 +03:00
73
6bbb0e8348
Fix typo on VIEWPORT_FLAG_INDEPENDENT_ROTATION
...
This fixes a typo on a variable.
2025-05-26 12:05:13 +02:00
Harry Hopkinson
994cc858e8
More efficiently search viewports for playing Audio
2025-05-26 08:37:44 +01:00
mix
12606f3d9b
Simplify the code of a couple of viewport screen coord calculations
2025-05-22 20:58:55 +01:00
mix
03d31d1a7c
Fix viewport invalidation offsetting position each loop iteration
2025-05-22 20:58:55 +01:00
mix
5e51c89d9f
Fix extra viewport invalidating every frame
2025-05-22 20:58:55 +01:00
mix
0b5fb11be9
Remove unnecessary window OnResize calls
2025-05-22 20:58:54 +01:00
mix
04c3113593
Simplify window visibility check iteration
2025-05-21 21:37:07 +01:00
mix
cc813e3f16
Refactor window visibility cache and fix viewport visibility
2025-05-21 18:06:06 +01:00
Matt
e20824d1fa
Fix #24422 : More than one viewport is causing issues
2025-05-17 22:38:25 +02:00
ζeh Matt
c37327a9c9
Use continuous but stable storage for viewports
2025-05-17 00:45:08 +03:00
Matt
6335c31336
Rename DrawPixelInfo to RenderTarget ( #24339 )
...
* Begin backend separation, rename type DrawingPixelInfo to RenderTarget
* Rename dpi variables to rt
2025-05-04 22:06:46 +00:00
mix
9ace1a8a2b
Fix #24303 : Track pieces do not draw in the ride construction window
2025-04-29 02:28:12 +01:00
ζeh Matt
576a757200
Add safe guards to make sure we have a valid drawing context
2025-04-25 17:48:37 +03:00
ζeh Matt
c9bba5ee63
Workaround for OpenGL renderer viewport panning, turn it into a hybrid
2025-04-25 17:48:36 +03:00
ζeh Matt
911f821245
Simplify + clang-format correction
2025-04-25 17:48:36 +03:00
ζeh Matt
6d63b1f752
Skip dead windows in some iterations
2025-04-25 17:48:36 +03:00
Aaron van Geffen
99836faeff
Rename Window_internal unit to WindowBase for consistency ( #24163 )
2025-04-06 17:43:36 +02:00
Gymnasiast
2002f697e0
Refactor INPUT_FLAGS into FlagHolder
2025-03-26 13:00:54 +01:00
Gymnasiast
41dc87c68e
Refactor DRAWING_ENGINE_FLAGS into FlagHolder
2025-03-26 12:43:21 +01:00
Gymnasiast
4badffcdb6
Change GameState_t members to lowerCamelCase
2025-03-20 23:05:57 +01:00
Michael Steenbeek
05b64985f4
Update Ride struct to new codestyle
2025-03-09 00:26:25 +01:00
Michael Steenbeek
06c1fed4f7
Refactor gScreenFlags to LegacyScene enum
2025-03-05 20:45:04 +00:00
Gymnasiast
17140192de
Change VisibilityCache members to new codestyle
2025-03-01 20:12:12 +01:00
David Sungaila
081a2f44d9
Add see-through option to the "Cut-away View" ( #23759 )
2025-02-22 11:09:32 +01:00
Aaron van Geffen
6933af25ae
Rename 'Climate' properties to Weather ( #23786 )
...
* Rename ClimateState to WeatherState
* Rename ClimateCurrent to WeatherCurrent
* Rename ClimateNext to WeatherNext
* Rename ClimateUpdateTimer to WeatherUpdateTimer
* Use named initialisers for weather state import in S4/S6 importers
* Rename S4::ClimateTimer to WeatherUpdateTimer as well
* Rename WeatherState struct properties to lowerCamelCase
2025-02-13 07:38:45 -03:00
Aaron van Geffen
cf448753c1
Move WindowInvalidate and WidgetInvalidate families into WindowManager ( #23692 )
...
* Move WindowInvalidate and WidgetInvalidate families into WindowManager
* Use InvalidateWidget shorthand in more places
* Cut back on UiContext includes
* Cut back on Window.h includes
* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Michael Steenbeek
be9f27e4f9
Mass rename constants ( #23656 )
2025-01-19 15:59:45 +00:00
Aaron van Geffen
bed4d5bdca
Move WindowCreate and WindowFocusOrCreate into WindowManager ( #23643 )
...
* Move WindowBringToFront into WindowManager
* Move WindowCreate and WindowFocusOrCreate into WindowManager
* Cut back on Context/UiContext includes
2025-01-19 06:58:28 -03:00
Aaron van Geffen
e1fa0b539d
Move Widget, Window, Intent, MouseInput into OpenRCT2 namespace ( #23642 )
2025-01-18 15:29:41 +02:00
Aaron van Geffen
aa45247f21
Move WindowFind functions into WindowManager ( #23517 )
...
* Move WindowFind* functions into WindowManager
* Update parameter documentation where applicable
2025-01-08 21:12:11 +01:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Michał Janiszewski
6a04aaf2fa
Update code formatting for clang-format 19
2024-12-09 23:25:40 +01:00
Aaron van Geffen
b3aa852a8d
Consolidate util/Math.hpp into core/Numerics.hpp ( #23319 )
...
* Consolidate util/Math.hpp into core/Numerics.hpp
* Remove branching; replace isPowerOf2 with std::has_single_bit
* Add templated types to floor2 and ceil2
2024-12-04 21:00:26 +00:00
Aaron van Geffen
abb3870212
Remove dead code from Viewport.cpp ( #23049 )
2024-10-25 07:23:38 +01:00
mrmbernardi
9eb6ee2417
Fix UB from unaligned load of RLE line offsets
2024-10-15 22:03:38 +02:00
Michael Steenbeek
a2ed026264
Split up remaining tile elements
2024-10-15 22:02:31 +02:00
duncanspumpkin
6283993351
Move WallElement into its own header/source files
2024-10-07 22:04:13 +02:00
Michael Bernardi
09fa68a803
Revert DPI accessors
2024-09-27 02:50:50 +10:00
Michael Bernardi
570e1efc8c
OpenGL drawing now uses new coordinates
2024-09-27 00:07:40 +10:00
Michael Bernardi
914ff59b3b
Line drawing algorithms now use screen coords
2024-09-27 00:07:40 +10:00