[nostalgia/core] Cleanup color channel conversion

This commit is contained in:
2019-12-31 17:34:34 -06:00
parent bd1fc01ca1
commit 2049931937
2 changed files with 18 additions and 18 deletions
+7 -7
View File
@@ -69,20 +69,20 @@ ox::Error model(T *io, NostalgiaGraphic *ng) {
*/
[[nodiscard]] ox::Error loadTileSheet(Context *ctx, TileSheetSpace tss, int section, ox::FileAddress tilesheet, ox::FileAddress palette = nullptr);
[[nodiscard]] Color32 toColor32(Color16 nc);
[[nodiscard]] Color32 toColor32(Color16 nc) noexcept;
[[nodiscard]] uint8_t red32(Color16 c);
[[nodiscard]] uint8_t red32(Color16 c) noexcept;
[[nodiscard]] uint8_t green32(Color16 c);
[[nodiscard]] uint8_t green32(Color16 c) noexcept;
[[nodiscard]] uint8_t blue32(Color16 c);
[[nodiscard]] uint8_t blue32(Color16 c) noexcept;
[[nodiscard]] uint8_t red32(Color32 c);
[[nodiscard]] uint8_t red32(Color32 c) noexcept;
[[nodiscard]] uint8_t green32(Color32 c);
[[nodiscard]] uint8_t green32(Color32 c) noexcept;
[[nodiscard]] uint8_t blue32(Color32 c);
[[nodiscard]] uint8_t blue32(Color32 c) noexcept;
void puts(Context *ctx, int column, int row, const char *str);