mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
1a5e64329f
We need something more manageable to deal with the textures - and the hightile code in particular needs a better backend to read the images.
37 lines
692 B
C++
37 lines
692 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(const char *name);
|
|
FBitmap GetBgraBitmap(PalEntry *, int *trans) override;
|
|
FImageSource *GetImage() const override;
|
|
|
|
|
|
void SetSize()
|
|
{
|
|
CopySize(faces[0]);
|
|
}
|
|
|
|
bool Is3Face() const
|
|
{
|
|
return faces[5] == nullptr;
|
|
}
|
|
|
|
bool IsFlipped() const
|
|
{
|
|
return fliptop;
|
|
}
|
|
};
|