Commit Graph
115 Commits
Author SHA1 Message Date
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
ζeh Matt d352c31991 Refactor PaletteMap, this is just a view of data 2024-12-14 16:21:59 +02:00
ζeh Matt c23071f67f Use GamePalette instead of raw byte array 2024-12-14 16:21:59 +02:00
ζeh Matt 0e1517be4f Move GamePalette into ColourPalette.h, use namespace for it also 2024-12-14 16:21:54 +02:00
Michael Bernardi 09fa68a803 Revert DPI accessors 2024-09-27 02:50:50 +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 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
Harry Hopkinson d34f17c945 Refactor Colour.h constants to kCamelCase 2024-09-24 20:42:44 +00:00
Matt 06501b0e9a Fix #22316: Always recreate the window when changing drawing engine 2024-08-12 23:49:58 +02:00
Aaron van Geffen b5ef2693b0 Remove common.h include from all units 2024-07-09 16:45:19 +02:00
Aaron van Geffen 8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00
Aaron van Geffen 51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00
Aaron van Geffen e3bb105a06 Move SSE41 and AVX2 detection into Platform namespace 2024-07-12 14:38:18 +02:00
Aaron van Geffen a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Aaron van Geffen 95239d75c9 Move UpdatePaletteEffects to Drawing.cpp 2024-04-29 18:14:09 +02:00
Aaron van Geffen 66cb4a1d81 Mark GlassPaletteIds static constexpr 2024-04-29 18:05:25 +02:00
Aaron van Geffen dcc1a0627d Move gPeepPalette, gOtherPalette to Drawing.Sprite.cpp 2024-04-29 18:01:39 +02:00
Harry-Hopkinson ef7d7575de Rename PALETTE_TOTAL_OFFSETS to kPaletteTotalOffsets 2024-04-26 17:55:23 +01:00
Aaron van Geffen 82c434358a Introduce SPR_DEFAULT_PALETTE 2024-04-19 17:47:22 +02: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
Matthias Moninger 3ef6003671 Replace openrct2_assert with Guard::Assert, remove openrct2_assert 2023-07-02 16:42:46 +02:00
ζeh Matt 60a2d5c1f6 Use static initialization to get the correct masking function 2023-06-27 23:02:31 +03:00
Gymnasiast 91f4c1e752 Use dpi ref in misc drawing functions 2023-04-11 22:59:03 +01:00
Gymnasiast bb83a80eab Use dpi ref in rect and line drawing functions 2023-04-11 22:59:01 +01:00
Gymnasiast 9c2d5b9fef Make GfxDrawSprite() take reference 2023-04-11 22:53:30 +01:00
kyphiiandTrevor Finney 39790779bb Extend color selection dropdown with more colors (#19446)
* Setup for extended palette

* Define order for color picker cells

* Init G2 Palettes in ColoursInitMaps

* Add Glass Palettes

* Use special sprite for Invisible color

* Set up new cheat for special colors

* Add glass palettes to palette_to_g1_offset

* Add entries for new colors in TranslucentWindowPalettes

* Finish implementation of special colors cheat

* Some cleanup

* New colors almost work

* Correct g2 palette loading indices

* Invisible color sprite displays properly

* Repaint works with large scenery and walls

* Prevent random shop items from overflowing to junk palettes

* More cleanup

* Fix glass palettes

* Add mapping of new colors to original colors for UI themes

* Fix junk palettes for random shop items

* Fix missing highlight color in software renderer

* Convert small scenery support flag to allow use of new colors

* Progress on displaying new colors in software renderer

* Fix invisible color scheme sprite

* Formatting cleanup

* Resolve comparison of integer expressions of different signedness

* Index g2 palette maps to fix visible chain lift

* Progress on fixing new colors in software renderer

* Fix station and support colors

* Fix dropdown selected index

* Get invisible color (mostly) working in software renderer

* Use forceBmp for palette resources

* Remove test function definition left in by mistake

* Remove some obsolete range checks for original color values

* Add changelog entry

* Reorder color dropdown based on NE user feedback

* Some cleanup

* Further cleanup

* Formatting

* Add include for GetPaletteMapIndexForColour

* Fix a couple things I broke

* Fix function placement

* Revert "Add include for GetPaletteMapIndexForColour"

This reverts commit 0af9611e6656d792adb7a36efe7dbf3387a4a759.

* Use color constants for color order list

* Make remappable colors contiguous

* turn off clang format for ordered color list

* Appease clang

* Use all colors for random shop item animation

* Improvements to palette map resources

* Fix chain lifts again + adjustments to a few colors

* Update changelog and contributors.md

* Revert changes to S4 and S6 importers which are no longer needed

* Bump network, plugin, and minimum park versions

* Revert "Progress on displaying new colors in software renderer"

This reverts commit 337602e4a78a67f828d9c524138a1cb79b2c91dc.

* Remove unnecessary comment

---------

Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-06 08:36:07 +01:00
Duncan b56748bc82 ObjectEntry Cleanup. FootpathItem, SceneryGroup, Water, LargeScenery (#19385)
* Move footpathitem entry into new getter

* Move scenery group entry into new getter

* Move water entry into new getter

* Move large scenery entry into new getter

* Remove unused header includes

* Fix compile issue

* Include missing header from vcxproj
2023-02-15 21:35:16 +00:00
Duncan 24581e781f Move misc ObjectEntries into Object folder (#19281)
* Move water entry

* Move FootpathEntry

* Move EntranceEntry

* Move SceneryGroupEntry
2023-01-27 19:44:58 +00:00