- Convert the entire image backend infrastructure to be animation-friendly

This commit is contained in:
Cacodemon345 2023-08-22 11:33:06 +02:00 committed by Christoph Oelckers
commit 7c90ea6b84
31 changed files with 145 additions and 128 deletions

View file

@ -55,7 +55,7 @@ FBuildTexture::FBuildTexture(const FString &pathprefix, int tilenum, const uint8
TopOffset = top;
}
PalettedPixels FBuildTexture::CreatePalettedPixels(int conversion)
PalettedPixels FBuildTexture::CreatePalettedPixels(int conversion, int frame)
{
PalettedPixels Pixels(Width * Height);
FRemapTable *Remap = Translation;
@ -67,7 +67,7 @@ PalettedPixels FBuildTexture::CreatePalettedPixels(int conversion)
return Pixels;
}
int FBuildTexture::CopyPixels(FBitmap *bmp, int conversion)
int FBuildTexture::CopyPixels(FBitmap *bmp, int conversion, int frame)
{
PalEntry *Remap = Translation->Palette;
bmp->CopyPixelData(0, 0, RawPixels, Width, Height, Height, 1, 0, Remap);