gzdoom/src/textures/skyboxtexture.h
Christoph Oelckers f4d9ad1123 - 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.
2018-03-18 21:33:44 +01:00

50 lines
994 B
C++

#pragma once
#include "textures.h"
//-----------------------------------------------------------------------------
//
// This is not a real texture but will be added to the texture manager
// so that it can be handled like any other sky.
//
//-----------------------------------------------------------------------------
class FSkyBox : public FTexture
{
public:
FTexture * faces[6];
bool fliptop;
FSkyBox();
~FSkyBox();
const uint8_t *GetColumn(FRenderStyle style, unsigned int column, const Span **spans_out);
const uint8_t *GetPixels (FRenderStyle style);
int CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rotate, FCopyInfo *inf);
bool UseBasePalette();
void Unload ();
void SetSize()
{
if (faces[0])
{
Width=faces[0]->GetWidth();
Height=faces[0]->GetHeight();
CalcBitSize();
}
}
bool Is3Face() const
{
return faces[5]==NULL;
}
bool IsFlipped() const
{
return fliptop;
}
};
void ParseGldefSkybox(FScanner &sc);
void ParseVavoomSkybox();