- 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

@ -57,8 +57,8 @@ class FVoxelTexture : public FImageSource
public:
FVoxelTexture(FVoxel *voxel);
int CopyPixels(FBitmap *bmp, int conversion) override;
PalettedPixels CreatePalettedPixels(int conversion) override;
int CopyPixels(FBitmap *bmp, int conversion, int frame = 0) override;
PalettedPixels CreatePalettedPixels(int conversion, int frame = 0) override;
protected:
FVoxel *SourceVox;
@ -84,7 +84,7 @@ FVoxelTexture::FVoxelTexture(FVoxel *vox)
//
//===========================================================================
PalettedPixels FVoxelTexture::CreatePalettedPixels(int conversion)
PalettedPixels FVoxelTexture::CreatePalettedPixels(int conversion, int frame)
{
// GetPixels gets called when a translated palette is used so we still need to implement it here.
PalettedPixels Pixels(256);
@ -123,7 +123,7 @@ PalettedPixels FVoxelTexture::CreatePalettedPixels(int conversion)
//
//===========================================================================
int FVoxelTexture::CopyPixels(FBitmap *bmp, int conversion)
int FVoxelTexture::CopyPixels(FBitmap *bmp, int conversion, int frame)
{
PalEntry pe[256];
uint8_t bitmap[256];