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
|
|
|
|
2023-08-23 18:36:19 +00:00
|
|
|
PalettedPixels CreatePalettedPixels(int conversion, int frame = 0) override;
|
|
|
|
int CopyPixels(FBitmap* bmp, int conversion, int frame = 0);
|
2021-05-24 15:04:07 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|