gzdoom-gles/src/swrenderer/r_swscene.h
Christoph Oelckers b32aa60760 Made SWPaletteTexture an ImageSource and let it be managed by the texture manager.
This is a lot easier to manage because the palette is just static data that can easily mimic an image.
2018-12-10 02:43:37 +01:00

27 lines
473 B
C++

#pragma once
#pragma once
#include "r_defs.h"
#include "m_fixed.h"
#include "hwrenderer/scene/hw_clipper.h"
#include "r_utility.h"
#include "c_cvars.h"
#include <memory>
class FWrapperTexture;
class SWSceneDrawer
{
FTexture *PaletteTexture;
std::unique_ptr<FWrapperTexture> FBTexture[2];
int FBTextureIndex = 0;
bool FBIsTruecolor = false;
std::unique_ptr<DCanvas> Canvas;
public:
SWSceneDrawer();
~SWSceneDrawer();
sector_t *RenderView(player_t *player);
};