- added caching for true color images as well

This commit is contained in:
Christoph Oelckers 2018-12-10 02:35:10 +01:00
commit 4cd60fbe99
13 changed files with 161 additions and 83 deletions

View file

@ -24,6 +24,7 @@
#include "w_wad.h"
#include "textures.h"
#include "skyboxtexture.h"
#include "bitmap.h"
@ -60,9 +61,9 @@ TArray<uint8_t> FSkyBox::Get8BitPixels(bool alphatex)
//
//-----------------------------------------------------------------------------
int FSkyBox::CopyPixels(FBitmap *bmp)
FBitmap FSkyBox::GetBgraBitmap(PalEntry *p, int *trans)
{
if (faces[0]) return faces[0]->CopyPixels(bmp);
return 0;
if (faces[0]) return faces[0]->GetBgraBitmap(p, trans);
return FTexture::GetBgraBitmap(p, trans);
}