-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23322 from ZehMatt/drawing-refactor
Refactor some code around the color palette
- Loading branch information
Showing
16 changed files
with
130 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,21 @@ | ||
#pragma once | ||
|
||
#include <array> | ||
#include <cstdint> | ||
|
||
namespace OpenRCT2::Drawing | ||
{ | ||
|
||
struct PaletteBGRA | ||
{ | ||
uint8_t Blue{}; | ||
uint8_t Green{}; | ||
uint8_t Red{}; | ||
uint8_t Alpha{}; | ||
}; | ||
|
||
constexpr auto kGamePaletteSize = 256u; | ||
|
||
using GamePalette = std::array<PaletteBGRA, kGamePaletteSize>; | ||
|
||
} // namespace OpenRCT2::Drawing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.