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
|
|
|
|
2018-10-29 06:39:33 +00:00
|
|
|
class FWrapperTexture;
|
2018-04-07 17:41:21 +00:00
|
|
|
|
|
|
|
class SWSceneDrawer
|
|
|
|
{
|
2018-06-18 19:15:52 +00:00
|
|
|
std::unique_ptr<FTexture> PaletteTexture;
|
2018-10-29 06:39:33 +00:00
|
|
|
std::unique_ptr<FWrapperTexture> FBTexture[2];
|
2018-06-18 19:15:52 +00:00
|
|
|
int FBTextureIndex = 0;
|
2018-04-07 17:41:21 +00:00
|
|
|
bool FBIsTruecolor = false;
|
2018-11-30 16:02:39 +00:00
|
|
|
std::unique_ptr<DCanvas> 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
|
|
|
};
|
|
|
|
|