Gymnasiast
05c9e0f7dc
Use TextColours in the text drawing structs
2025-12-20 11:43:51 +01:00
Gymnasiast
9c2000565d
Use ColourFlags in TextDrawInfo
2025-11-03 23:25:31 +01:00
Gymnasiast
fe24e9b77b
Create Drawing.String.h
2025-11-03 23:25:30 +01:00
Gymnasiast
daa4fe8ac3
Rename field of all config categories
2025-10-07 20:21:32 +02:00
ζeh Matt
88623be8da
Add force redraw debug paint option
2025-10-02 17:30:31 +03:00
mix
cc813e3f16
Refactor window visibility cache and fix viewport visibility
2025-05-21 18:06:06 +01:00
Matt
42df41efdb
Remove the use of shared_ptr for the Context ( #24404 )
...
* Replace shared_ptr with unique_ptr for Context systems, return refs
* Fix all the users
* clang-format fix
* Fix linux builds
2025-05-15 22:46:06 +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
Matt
a34f1925df
Fix LightFX crashing due to operation order ( #24315 )
2025-05-02 09:47:28 +02:00
ζeh Matt
0f2f106173
Increase invalidation grid for software renderers
2025-04-25 23:37:27 +03:00
ζeh Matt
983b4e1a1f
Remove the old invalidation thing
2025-04-25 17:48:38 +03: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
4e8ac7ea12
Fix invalidation debug paint
2025-04-24 21:15:49 +03:00
ζeh Matt
360bfbfb66
Introduce InvalidationGrid
2025-04-24 21:15:46 +03:00
Duncan
d5de6c2b49
Start Simplifying CMake code ( #24177 )
...
* Use generator expressions
* Update cmake minimum
* Move options and remove project name
* Use further generator expressions
* Try upgrading to CMake 3.25 on Ubuntu 22.04 CI
Install software-properties-common
* Standardise with DISABLE_TTF for disable defines
* Set X64 var differently due to unknown reasons
---------
Co-authored-by: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com >
2025-04-11 16:09:52 +01:00
Michael Steenbeek
cfb4b008b2
Create weak enum for PaletteIndex
2025-04-09 16:47:22 +02:00
Gymnasiast
41dc87c68e
Refactor DRAWING_ENGINE_FLAGS into FlagHolder
2025-03-26 12:43:21 +01:00
Michael Steenbeek
be9f27e4f9
Mass rename constants ( #23656 )
2025-01-19 15:59:45 +00:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
23d4032eed
Move LightFX into its own namespace ( #23506 )
2024-12-30 11:04:39 +00:00
Aaron van Geffen
3685d1a24b
clang-format: change IndentPPDirectives to BeforeHash ( #23287 )
2024-11-29 12:04:56 +09:00
Michael Bernardi
09fa68a803
Revert DPI accessors
2024-09-27 02:50:50 +10:00
Michael Bernardi
4cd5548352
Refactor DPI to distinguish screen and world coords
2024-09-27 00:07:40 +10:00
Aaron van Geffen
4bdbd787a9
Fix lighting effects not toggling correctly ( #22582 )
...
* Fix lighting effects not toggling correctly
* Simplify boolean expressions around lighting effects options
* Invalidate entire screen after toggling lighting effects
* Add changelog entry
2024-08-16 20:37:21 +00:00
ζeh Matt
348df5a986
Clear the screen with color in the drawing engine and not each tick
2024-08-01 23:48:54 +03:00
Aaron van Geffen
8cef18cd2f
Include cassert as needed at unit level
2024-07-09 16:43:03 +02:00
Aaron van Geffen
e3bb105a06
Move SSE41 and AVX2 detection into Platform namespace
2024-07-12 14:38:18 +02:00
Michał Janiszewski
3c35558f3f
Fix compilation on Arch Linux with GCC 14 ( #22031 )
...
Fixes #22029
2024-05-13 22:09:00 +00: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
Aaron van Geffen
56cbc0eb8a
Refactor intro into IntroScene
2024-04-26 20:35:16 +02:00
mrmbernardi
d48b75fb86
Refactor TTF drawing ( #21621 )
2024-03-28 23:28:54 +01:00
Harry Hopkinson
78d95fc0bd
Pass DrawPixelInfo by reference ( #21563 )
2024-03-10 12:00:08 -03:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
ζeh Matt
d6b340b34d
Fix comments
2023-04-26 21:58:44 +03:00
ζeh Matt
5439c7ffeb
Improve dirty grid rendering performance.
2023-04-26 18:37:00 +03:00
Gymnasiast
2941f6f7a5
Use dpi ref in misc drawing folder places
2023-04-11 22:57:25 +01:00
Gymnasiast
fc0e0d029a
Use dpi ref in ui context and weather
2023-04-11 22:57:25 +01:00
Gymnasiast
16c5c1b752
Use dpi ref in interface folder
2023-04-11 22:57:25 +01:00
Gymnasiast
96d77ed8f7
Using dpi refs in most remaining window defs
2023-04-11 22:57:23 +01:00
Duncan
859b071ddc
Rename classes with snakes OpenRCT2/A*-F* ( #19215 )
...
* Rename classes with snakes OpenRCT2/A*-F*
* Clang format files
2023-01-19 08:16:44 +00:00
Duncan
8504c8d05e
Finish Removing snake_case from Drawing Methods
2023-01-16 22:31:34 +00:00
Gymnasiast
5309c80e29
Remove snake_case in interface folder
2023-01-16 22:20:41 +01:00
Hielke Morsink
6dafbbfb65
Rename global window functions to TitleCase ( #19167 )
2023-01-16 20:13:42 +00:00
Duncan
7f5934cc95
Remove snake_case from second chunk of Drawing ( #19166 )
2023-01-16 18:52:17 +00:00
Duncan
8a8d3105f3
Remove snake_case from first chunk of Drawing ( #19164 )
...
* Remove snake_case from first chunk of Drawing
* Address formatting
2023-01-16 13:50:43 +00:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Michał Janiszewski
3e4e8bccc5
Pass ImageId by value instead by const-ref
...
ImageId struct is 8-bytes large and can fit in CPU register. Passing it
by value lets compiler pass it in register instead of forcing to
reference it from memory.
In my tests this brings
[dome park](https://github.com/OpenRCT2/OpenRCT2/files/6134362/dome-export.zip )
benchgfx results from 42.16s down to 41.08s, or by 2.5%.
2022-11-12 00:06:05 +01:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00