mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
6bffdf80a1
Game compiles and runs but transparency doesn't work yet. # Conflicts: # source/CMakeLists.txt # source/core/menu/menu.cpp # source/core/textures/buildtiles.cpp
43 lines
837 B
C++
43 lines
837 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 *previous;
|
|
FTexture * faces[6];
|
|
bool fliptop;
|
|
|
|
FSkyBox(const char *name);
|
|
TArray<uint8_t> Get8BitPixels(bool alphatex);
|
|
FBitmap GetBgraBitmap(const PalEntry *, int *trans) override;
|
|
FImageSource *GetImage() const override;
|
|
|
|
|
|
void SetSize()
|
|
{
|
|
if (!previous && faces[0]) previous = faces[0];
|
|
if (previous)
|
|
{
|
|
CopySize(previous);
|
|
}
|
|
}
|
|
|
|
bool Is3Face() const
|
|
{
|
|
return faces[5] == nullptr;
|
|
}
|
|
|
|
bool IsFlipped() const
|
|
{
|
|
return fliptop;
|
|
}
|
|
};
|