2019-10-23 23:20:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
// This is a font character that reads RLE compressed data.
|
2020-05-24 14:32:52 +00:00
|
|
|
class FFontChar2 : public FImageSource
|
2019-10-23 23:20:58 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-05-24 14:32:52 +00:00
|
|
|
FFontChar2 (int sourcelump, int sourcepos, int width, int height, int leftofs=0, int topofs=0);
|
2019-10-23 23:20:58 +00:00
|
|
|
|
2020-05-24 14:32:52 +00:00
|
|
|
TArray<uint8_t> CreatePalettedPixels(int conversion) override;
|
2021-05-24 15:04:07 +00:00
|
|
|
int CopyPixels(FBitmap* bmp, int conversion);
|
|
|
|
|
|
|
|
void SetSourceRemap(const PalEntry* sourceremap)
|
|
|
|
{
|
|
|
|
SourceRemap = sourceremap;
|
|
|
|
}
|
2019-10-23 23:20:58 +00:00
|
|
|
|
|
|
|
protected:
|
2020-05-24 14:32:52 +00:00
|
|
|
int SourceLump;
|
2019-10-23 23:20:58 +00:00
|
|
|
int SourcePos;
|
2021-05-24 15:04:07 +00:00
|
|
|
const PalEntry *SourceRemap;
|
2019-10-23 23:20:58 +00:00
|
|
|
};
|