Add ApplyPalette routine to Bitmap class

This commit is contained in:
Justin Scofield
2022-07-10 15:41:21 -04:00
parent 1e7b986adb
commit 1fd875421f
2 changed files with 8 additions and 1 deletions

View File

@@ -57,6 +57,10 @@ void Bitmap::CreateTexture(std::shared_ptr<SDL_Renderer> renderer) {
texture_ = SDL_CreateTextureFromSurface(renderer.get(), surface_);
}
void Bitmap::ApplyPalette(const SNESPalette& palette) {
palette_ = palette;
}
} // namespace gfx
} // namespace app
} // namespace yaze