Add context info about bitmaps to canvas

This commit is contained in:
scawful
2024-04-12 00:34:26 -04:00
parent f712474efe
commit 4ab5ee8a68
4 changed files with 16 additions and 10 deletions

View File

@@ -48,10 +48,11 @@ class Bitmap {
int height);
absl::Status ApplyPalette(const SnesPalette &palette);
absl::Status ApplyPaletteWithTransparent(const SnesPalette &palette, int index,
int length = 7);
absl::Status ApplyPaletteWithTransparent(const SnesPalette &palette,
int index, int length = 7);
void ApplyPalette(const std::vector<SDL_Color> &palette);
absl::Status ApplyPaletteFromPaletteGroup(const SnesPalette &palette, int palette_id);
absl::Status ApplyPaletteFromPaletteGroup(const SnesPalette &palette,
int palette_id);
void WriteToPixel(int position, uchar value) {
if (pixel_data_ == nullptr) {