ζ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
Michael Steenbeek
6fe19878f6
More ImageId cleanup ( #18258 )
...
* Remove more usages of uint32 image indices
* Remove unused gfx_get_sprite_size()
* Remove uint32 images from text drawing
* Remove now-unused ImageId overload
* Default-initialise ttfRunIndex
* Suppress false-alarm GCC error
2022-10-10 19:42:40 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Gymnasiast
cedccf9b0e
Use const ImageId in drawing functions
2022-09-29 21:17:15 +02:00
Michael Steenbeek
2b859c7099
Remove __ENABLE_LIGHTFX__ define
...
It is already enabled for all our builds, and upcoming changes to RTD would add a slew more.
Discussed in team chat with Duncan and Hielke.
2022-07-28 21:34:02 +00:00
Hielke Morsink
ba85cf4873
Close #15896 : Refactor out the ZoomLevel operators
2022-02-26 23:14:59 +01:00
Hielke Morsink
fea9254368
Remove unused GetEngine functions ( #16722 )
2022-02-26 07:27:48 -03:00
Ted John
d427098e39
Refactor terrain and path to use ImageId
2021-12-07 20:46:15 +00:00
Ted John
5f9d03e9df
Refactor ImageId and use in more functions
2021-12-03 19:59:33 +01:00
Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
ζeh Matt
a0e7752f26
Pass rct_drawpixelinfo explicit to avoid races
2021-10-06 23:48:07 +03:00
ζeh Matt
6ad4150085
Introduce rendering engine flag for parallel drawing
2021-10-06 17:15:40 +03:00
ζeh Matt
59a6c34db4
Make use of std::optional strict
2021-09-13 20:02:32 +03:00
ζeh Matt
b733e97bfa
Remove numerics from common.h and use it as needed
2021-09-11 20:21:08 +03:00
frutiemax
cd9873a78d
Use ScreenLine on gfx_draw_line_software
2021-03-13 16:52:58 +01:00
ζeh Matt
011588b01e
Move window update out of variable frame updates ( #13704 )
2021-01-10 09:36:34 -03:00
Łukasz Pękalski
4adf745237
Close #12403 : Refactor FILTER_PALETTE_ID to use strong enum ( #13273 )
2020-12-05 15:13:59 -03:00
Ghlen Nagels
8c55d1ea9f
Close #12446 : Refactor WEATHER to use strong enum ( #13434 )
2020-11-22 17:34:30 +00:00
Brett
c9de4f49fe
Add snow as a weather type
...
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-09-14 21:58:00 +02:00
Gymnasiast
31d20cefb2
Rename rain to weather where appropriate
...
Co-authored-by: Brett Penzer <brettpenzer123@live.co.uk >
2020-09-14 21:57:54 +02:00
Michael Steenbeek
cf5b48a9dd
Rename Rain.{cpp,h} to Weather.{cpp,h} ( #12914 )
2020-09-12 19:32:26 -03:00
frutiemax
6598ae14aa
Close #12457 : Rename INTRO_STATE to use PascalCase
2020-07-26 09:32:53 -04:00
frutiemax
0f1788d273
Part of #12457 : Refactor INTRO_STATE to use strong enum
2020-07-26 09:25:29 -04:00
0ro8lu
4416565e47
Close #12269 : remove goto from x8_drawing_engine ( #12274 )
...
Refactored the function into a separate get dirty rows function.
2020-07-22 11:51:41 +01:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
finicu212
ec33551b24
Fix #12021 : Tie coords on gfx_draw_sprite_raw_masked_software ( #12080 )
...
Make gfx_draw_sprite_raw_masked_software use ScreenCoordsXY object
2020-06-29 18:38:03 -03:00
frutiemax
f86931d8a0
Close #12019 : Use ScreenCoordsXY on gfx_draw_sprite_software
2020-06-22 23:52:54 +02:00
frutiemax
4a17d1d64e
Fix #12020 - Use ScreenCoordsXY on gfx_draw_sprite_palette_set_software ( #12028 )
...
* Fix #12020 - Use ScreenCoordsXY on gfx_draw_sprite_palette_set_software
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-06-21 22:52:48 -03:00
Ted John
1b6899a954
Fix #11845 : Disabled icons are not shown as disabled ( #11857 )
2020-06-01 20:01:37 +01:00
Ted John
d3f7ec4844
Create new PaletteMap type to replace byte pointers
2020-05-28 20:00:23 +01:00
Ted John
46bb30f8a1
Refactor rct_palette to GamePalette
2020-05-27 20:52:51 +01:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Ted John
d34dec9c27
Create ZoomLevel struct to add two new zoom levels
2020-03-23 15:54:03 +00:00
Matt
d6c3373b5e
Remove unused parameter and minor cleanup
2020-02-15 21:28:28 +01:00
Ted John
c653f13552
Add tertiary colour to ImageId
2019-08-24 22:40:19 +01:00
Ted John
3925a6162d
Start using ImageId
2019-08-24 18:35:40 +01:00
Matt
2cf4a42cbe
Add rain rendering to OpenGL renderer
2019-07-18 20:54:47 +02:00