- extended FTexture::GetPixels and FTexture::GetColumn by a RenderStyle parameter.

Now it is no longer necessary to provide specially set up textures for rendering shaded decals, they can use any PNG texture now that contains a proper red channel.
Handling of the alPh chunk has been removed as a result as it in no longer needed.
This commit is contained in:
Christoph Oelckers 2018-03-18 21:33:44 +01:00
commit f4d9ad1123
41 changed files with 217 additions and 249 deletions

View file

@ -135,9 +135,9 @@ class FPaletteTester : public FTexture
public:
FPaletteTester ();
const uint8_t *GetColumn(unsigned int column, const Span **spans_out);
const uint8_t *GetPixels();
bool CheckModified();
const uint8_t *GetColumn(FRenderStyle, unsigned int column, const Span **spans_out) override;
const uint8_t *GetPixels(FRenderStyle);
bool CheckModified(FRenderStyle);
void SetTranslation(int num);
protected:
@ -983,7 +983,7 @@ FPaletteTester::FPaletteTester()
//
//==========================================================================
bool FPaletteTester::CheckModified()
bool FPaletteTester::CheckModified(FRenderStyle)
{
return CurTranslation != WantTranslation;
}
@ -1008,7 +1008,7 @@ void FPaletteTester::SetTranslation(int num)
//
//==========================================================================
const uint8_t *FPaletteTester::GetColumn(unsigned int column, const Span **spans_out)
const uint8_t *FPaletteTester::GetColumn(FRenderStyle, unsigned int column, const Span **spans_out)
{
if (CurTranslation != WantTranslation)
{
@ -1028,7 +1028,7 @@ const uint8_t *FPaletteTester::GetColumn(unsigned int column, const Span **spans
//
//==========================================================================
const uint8_t *FPaletteTester::GetPixels ()
const uint8_t *FPaletteTester::GetPixels (FRenderStyle)
{
if (CurTranslation != WantTranslation)
{