Harry Hopkinson
df2a210fd8
Rework openrct2/drawing includes ( #26815 )
2026-07-21 17:00:55 +02:00
Aaron van Geffen
8ed4b34907
Move includes out of Drawing.h and into their actual users
2026-03-26 12:55:37 +01:00
Gymnasiast
a5c32ab60c
Rename DrawText* to drawText*
2026-03-25 23:16:25 +01:00
Gymnasiast
2398d91fb2
Rename DrawTextBasic() to DrawText()
2026-03-25 23:15:49 +01:00
Gymnasiast
619487618a
Make gTextPalette internal to Drawing.String.cpp
2026-03-25 23:14:57 +01:00
Gymnasiast
38adb756ee
Make DrawText() internal again
2026-03-22 13:21:15 +01:00
Michał Janiszewski
7a6a5b4d3a
Fix MSVC debug builds ( #26220 )
2026-03-21 08:12:20 +01:00
Michał Janiszewski
6b4094b04f
Disambiguate OpenRCT2::ObjectManager ( #26145 )
2026-03-12 09:37:27 +01:00
Aaron van Geffen
be84cdb1bb
Rename Climate to Weather where appropriate ( #26163 )
...
* Introduce OpenRCT2::Weather namespace
* Rename Climate.h/cpp to Weather.h/cpp
* Rename ScClimate.hpp to ScWeather.hpp
* Rename drawing/Weather.h to drawing/WeatherDrawer.h
2026-03-08 11:00:07 +01:00
frozensnowy
4c88430ebb
Preview images from different windows overwrite each other when using OpenGL ( #25986 )
...
The Map, Track Design List, Track Design Placement, Install Track, and Park Preview windows all shared a single SPR_TEMP sprite ID for rendering dynamic preview images. In OpenGL mode, this caused them to overwrite each other's textures when multiple windows were open simultaneously. To fix it I added separate temp sprite IDs for each window that needs one, with an array of G1Elements to store each separetely
2026-02-10 19:42:32 +01:00
Michael Steenbeek
4878894a7e
Use PaletteIndex in RenderTarget ( #25948 )
2026-02-07 23:41:40 +01:00
Michael Steenbeek
343c7a70d7
Change colour to a strong enum ( #25873 )
2026-01-28 10:06:45 +01:00
Aaron van Geffen
e6fa0e48d0
Rework palette information into palettes.dat ( #25681 )
...
* Rework all palette information into new palette.dat
* Harmonise order between sprites.json, SpriteIds.h, kPaletteToG1Offset
* Rename G1 counterparts for completeness/documentation
* Bump libsawyer to v1.4.0
2026-01-25 10:39:18 +01:00
Gymnasiast
27b5c8d44e
Deduplicate water colour names
2026-01-24 17:17:13 +01:00
Gymnasiast
96e349645c
Move left palette index constants out of Colour.h
2026-01-24 16:50:09 +01:00
Gymnasiast
7909c889e9
Name palette fields in Water object
2026-01-18 23:06:13 +01:00
Michael Steenbeek
3e4261323a
Rename some palette indices ( #25843 )
2026-01-18 21:24:45 +00:00
Gymnasiast
7de4dcd675
Rename PaletteBGRA and its members
2026-01-16 19:25:24 +01:00
matheusvb3
bba937a03d
Remove more redundant namespace qualifiers ( #25828 )
2026-01-16 08:38:20 +01:00
Michael Steenbeek
50c77a074c
Refactor reading BGR values from g1 palette entries ( #25778 )
2026-01-11 20:01:05 +01:00
mrmbernardi
85117e9319
Fix PaletteIndex asserts ( #25783 )
2026-01-09 14:53:44 +00:00
Gymnasiast
a13b1c4e11
Make PaletteIndex into a strong enum and move into namespace
2026-01-07 23:55:30 +01:00
Michael Steenbeek
78a654fcbd
Rename missed occurrences of DrawPixelInfo/DPI to RenderTarget/RT ( #25768 )
2026-01-07 19:58:49 +00:00
Gymnasiast
659b3abc72
Pass FilterPaletteID to GetPaletteG1Index() and GetPaletteMapForColour()
2026-01-07 12:48:01 +01:00
Aaron van Geffen
1b844d9e52
Rework object header includes ( #25742 )
...
* Remove EntityList.h includes in a few places
* Remove Object.h dependency from Footpath.h
* Remove Object.h dependency from Editor headers
* Remove Object.h dependency from NetworkBase.h
* Move RideFilters struct to RideTypes.h
* Move ObjectSourceGame enum to its own header
* Remove Object.h dependency from ObjectManager.h
* Remove Object.h dependency from ObjectRepository.h
* Remove Object.h dependency from ObjectTypes.h
* Add missing copyright header to ObjectEntryManager.cpp
* Add missing copyright header to SurfaceData.h
2026-01-05 19:31:34 +01:00
Aaron van Geffen
40aaf97c07
Update copyright years to 2026 ( #25741 )
2026-01-05 13:42:59 +00:00
Gymnasiast
e6fa262b9e
Rename G1Element members, add unions for palette entries
2025-12-27 16:56:54 +01:00
Aaron van Geffen
8a0a655025
Unwrangle Drawing.h and Paint.h ( #25706 )
...
* Drop Drawing.h include from Paint.h
* Split off RenderTarget to its own header/unit
* Move FilterPaletteID to its own header
2025-12-26 12:58:33 +01:00
Gymnasiast
05c9e0f7dc
Use TextColours in the text drawing structs
2025-12-20 11:43:51 +01:00
Gymnasiast
0ec4e3353b
Update members of FontStyle
2025-11-03 23:25:30 +01:00
Gymnasiast
7c51ccde1e
Rename Rect namespace to Rectangle
2025-10-23 18:44:45 +02:00
Gymnasiast
93c3d99546
Move rectangle drawing into its own namespace
2025-10-23 18:41:08 +02:00
Gymnasiast
9e9b774266
Move rectangle drawing to Rect.{cpp,h}
2025-10-23 18:40:04 +02:00
Gymnasiast
739d83e321
Fix: scrolling intro background switches colour halfway through
2025-10-18 19:02:35 +02: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
Gymnasiast
a03613df35
Change FilterPaletteID to lowerCamelCase
2025-09-23 21:09:54 +02:00
Gymnasiast
c3ac626cd5
Update kTranslucentWindowPalettes name, replace defines
2025-09-23 21:03:57 +02: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
Michael Steenbeek
cfb4b008b2
Create weak enum for PaletteIndex
2025-04-09 16:47:22 +02:00
Gymnasiast
4badffcdb6
Change GameState_t members to lowerCamelCase
2025-03-20 23:05:57 +01:00
73
b9b2c96c97
Rename sprites.h to SpriteIds.h ( #23804 )
2025-02-13 15:51:46 +00: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
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
f39eebdc76
Fix #23464 : Water sparkles don't work properly ( #23467 )
2024-12-23 15:38:26 +00:00
Matt
92dac978dc
Merge pull request #23322 from ZehMatt/drawing-refactor
...
Refactor some code around the color palette
2024-12-17 20:29:13 +02:00
Aaron van Geffen
6ee798337a
Introduce EnumUtils header ( #23407 )
2024-12-15 17:39:52 +01:00
ζeh Matt
5765bf3281
Wrap asserts with _DEBUG as the variables don't exist for debug builds
2024-12-14 16:24:40 +02:00