2020-04-12 05:46:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "textures.h"
|
|
|
|
|
|
|
|
|
|
|
|
class AnimTexture : public FTexture
|
|
|
|
{
|
|
|
|
uint8_t Palette[768];
|
|
|
|
TArray<uint8_t> Image;
|
|
|
|
public:
|
2020-05-25 21:59:07 +00:00
|
|
|
AnimTexture() = default;
|
2020-05-24 19:19:33 +00:00
|
|
|
void SetFrameSize(int width, int height);
|
2020-05-25 21:59:07 +00:00
|
|
|
void SetFrame(const uint8_t* palette, const void* data);
|
|
|
|
virtual FBitmap GetBgraBitmap(const PalEntry* remap, int* trans) override;
|
2020-04-12 05:46:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class AnimTextures
|
|
|
|
{
|
|
|
|
int active;
|
2020-05-25 21:59:07 +00:00
|
|
|
FGameTexture* tex[2];
|
2020-04-12 05:46:53 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
AnimTextures();
|
|
|
|
~AnimTextures();
|
|
|
|
void SetSize(int width, int height);
|
2020-05-25 21:59:07 +00:00
|
|
|
void SetFrame(const uint8_t* palette, const void* data);
|
|
|
|
FGameTexture* GetFrame();
|
2020-04-12 05:46:53 +00:00
|
|
|
};
|