mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
b03c329ec6
- 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
45 lines
928 B
C++
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;
|
|
}
|
|
};
|