gzdoom-gles/src/textures/skyboxtexture.h
Christoph Oelckers b03c329ec6 - moved all GLDEFS parsing into a dedicated source file.
- split gl_postprocessshader.h in two so that the hardware independent part can be used by GLDEFS without pulling in all of OpenGL.

# Conflicts:
#	src/CMakeLists.txt
#	src/gl/dynlights/gl_glow.cpp
#	src/gl/renderer/gl_postprocess.cpp
#	src/gl/textures/gl_texture.cpp
2018-08-19 20:56:49 +02:00

45 lines
928 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;
}
};