mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-22 20:21:20 +00:00
42 lines
760 B
C++
42 lines
760 B
C++
#pragma once
|
|
|
|
#include "textures.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// Todo: Get rid of this
|
|
// The faces can easily be stored in the material layer array
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
|
|
class FSkyBox : public FImageTexture
|
|
{
|
|
public:
|
|
|
|
FGameTexture* previous;
|
|
FGameTexture* faces[6]; // the faces need to be full materials as they can have all supported effects.
|
|
bool fliptop;
|
|
|
|
FSkyBox(const char* name);
|
|
void SetSize();
|
|
|
|
bool Is3Face() const
|
|
{
|
|
return faces[5] == nullptr;
|
|
}
|
|
|
|
bool IsFlipped() const
|
|
{
|
|
return fliptop;
|
|
}
|
|
|
|
FGameTexture* GetSkyFace(int num) const
|
|
{
|
|
return faces[num];
|
|
}
|
|
|
|
bool GetSkyFlip() const
|
|
{
|
|
return fliptop;
|
|
}
|
|
};
|