ζ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
Michael Bernardi
cea971790f
Fix weather gloom
2024-09-27 00:07:40 +10:00
Michael Bernardi
970848539d
Cull sprites and invalidate viewports in screen coordinates
2024-09-27 00:07:40 +10:00
Michael Bernardi
cf9e4ae0f3
Rewrite ViewportRedrawAfterShift to avoid copying Viewport
2024-09-27 00:07:40 +10:00
Michael Bernardi
8cc53324b6
Remove view width and height from Viewport struct
2024-09-27 00:07:40 +10:00
Michael Bernardi
8212c83965
Rewrite ViewportPaint to handle new DPI coords
2024-09-27 00:07:40 +10:00
Michael Bernardi
4cd5548352
Refactor DPI to distinguish screen and world coords
2024-09-27 00:07:40 +10:00
Michael Bernardi
68daa0d735
Debugging code
2024-09-27 00:07:40 +10:00
Aaron van Geffen
97acb793e8
Rename InteractionInfo::SpriteType to interactionType
2024-09-22 16:53:43 +02:00
Michael Steenbeek
47800cddcf
Change RTD flags to a strong enum
2024-08-13 20:20:25 +00:00
mrmbernardi
9ed5c63857
Rename Location.hpp constants ( #22385 )
2024-07-26 10:23:25 +02:00
Aaron van Geffen
ef7dbe496a
Introduce VIEWPORT_FLAG_RENDERING_INHIBITED
2024-07-15 01:17:57 +02:00
mrmbernardi
4356ae4f5e
Rewrite sprite-cursor interaction code ( #22239 )
2024-07-14 03:46:40 +10:00
Aaron van Geffen
51873dc0f6
Include Diagnostic.h at unit level
2024-07-09 16:23:31 +02:00
Aaron van Geffen
658529464b
Ignore partially hidden sprites for viewport interaction ( #22217 )
2024-07-02 23:18:38 +02:00
Stephan Spengler
e96c999c43
Fix typo in Viewport.cpp ( #22215 )
2024-07-02 22:33:20 +10:00
Aaron van Geffen
a63d86c488
Introduce Config namespace and struct
2024-05-10 12:10:21 +02:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +02:00
Gustav Burkhardt
5837a33a60
Part of #21421 : rename MAX_VIEWPORT_COUNT to kMaxViewportCount
2024-04-26 09:11:19 +02:00
Karsten Van Fossan
137099a429
Close #18305 : Move Translate3DTo2DWithZ() from Map.h into Viewport.h
...
Translate3DTo2DWithZ move to Viewport.h as suggested by ducanspumpkin and update references. Remove redundant function Translate3Dto2D.
2024-04-21 01:18:11 +02:00
Claudio Tiecher
a94e6c54d8
Part of #21421 : replace define with constexpr ( #21679 )
2024-04-01 07:00:32 -03:00
Harry Hopkinson
78d95fc0bd
Pass DrawPixelInfo by reference ( #21563 )
2024-03-10 12:00:08 -03:00
Duncan
3146d463bd
Move Ui header items to OpenRCT2::Ui ( #21546 )
...
* Move ui definitions to ui project
* Enforce coding style
* Apply clang format
* Add clang tidy ignore
* Increase compiler happiness
2024-03-09 14:15:45 +00:00
ζeh Matt
2814662ea8
Remove unnecessary reset of entities spatial index, coordinates are 3D
2024-03-07 01:05:47 +02:00
ζeh Matt
d3b8ad471e
Turn the error into a verbose message when there is no viewport
2024-03-07 00:54:09 +02:00