2018-04-07 17:41:21 +00:00
|
|
|
#pragma once
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "r_defs.h"
|
|
|
|
#include "m_fixed.h"
|
2018-04-23 20:18:13 +00:00
|
|
|
#include "hwrenderer/scene/hw_clipper.h"
|
2018-04-07 17:41:21 +00:00
|
|
|
#include "r_utility.h"
|
|
|
|
#include "c_cvars.h"
|
2018-06-18 19:15:52 +00:00
|
|
|
#include <memory>
|
2018-04-07 17:41:21 +00:00
|
|
|
|
|
|
|
class FSWSceneTexture;
|
|
|
|
|
|
|
|
class SWSceneDrawer
|
|
|
|
{
|
2018-06-18 19:15:52 +00:00
|
|
|
std::unique_ptr<FTexture> PaletteTexture;
|
|
|
|
std::unique_ptr<FSWSceneTexture> FBTexture[2];
|
|
|
|
int FBTextureIndex = 0;
|
2018-04-07 17:41:21 +00:00
|
|
|
bool FBIsTruecolor = false;
|
2018-07-20 03:48:15 +00:00
|
|
|
std::unique_ptr<DSimpleCanvas> Canvas;
|
2018-04-07 17:41:21 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
SWSceneDrawer();
|
|
|
|
~SWSceneDrawer();
|
|
|
|
|
2018-05-05 09:20:37 +00:00
|
|
|
sector_t *RenderView(player_t *player);
|
2018-04-07 17:41:21 +00:00
|
|
|
};
|
|
|
|
|