2019-10-05 17:28:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "textures.h"
|
2020-05-25 21:59:07 +00:00
|
|
|
|
2019-10-05 17:28:05 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
2020-05-25 21:59:07 +00:00
|
|
|
// Todo: Get rid of this
|
|
|
|
// The faces can easily be stored in the material layer array
|
2019-10-05 17:28:05 +00:00
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2020-05-25 21:59:07 +00:00
|
|
|
class FSkyBox : public FImageTexture
|
2019-10-05 17:28:05 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2020-05-25 21:59:07 +00:00
|
|
|
FGameTexture* previous;
|
|
|
|
FGameTexture* faces[6]; // the faces need to be full materials as they can have all supported effects.
|
2019-10-05 17:28:05 +00:00
|
|
|
bool fliptop;
|
|
|
|
|
2020-05-25 21:59:07 +00:00
|
|
|
FSkyBox(const char* name);
|
|
|
|
void SetSize();
|
2019-10-05 17:28:05 +00:00
|
|
|
|
2020-05-25 21:59:07 +00:00
|
|
|
bool Is3Face() const
|
|
|
|
{
|
|
|
|
return faces[5] == nullptr;
|
|
|
|
}
|
2019-10-05 17:28:05 +00:00
|
|
|
|
2020-05-25 21:59:07 +00:00
|
|
|
bool IsFlipped() const
|
2019-10-05 17:28:05 +00:00
|
|
|
{
|
2020-05-25 21:59:07 +00:00
|
|
|
return fliptop;
|
2019-10-05 17:28:05 +00:00
|
|
|
}
|
|
|
|
|
2020-05-25 21:59:07 +00:00
|
|
|
FGameTexture* GetSkyFace(int num) const
|
2019-10-05 17:28:05 +00:00
|
|
|
{
|
2020-05-25 21:59:07 +00:00
|
|
|
return faces[num];
|
2019-10-05 17:28:05 +00:00
|
|
|
}
|
|
|
|
|
2020-05-25 21:59:07 +00:00
|
|
|
bool GetSkyFlip() const
|
2019-10-05 17:28:05 +00:00
|
|
|
{
|
|
|
|
return fliptop;
|
|
|
|
}
|
|
|
|
};
|