- added missing header.

This commit is contained in:
Christoph Oelckers 2018-04-07 19:41:21 +02:00
parent adbeb3f251
commit 1fc1fac2c2

58
src/gl/scene/gl_swscene.h Normal file
View file

@ -0,0 +1,58 @@
#pragma once
#pragma once
#include "r_defs.h"
#include "m_fixed.h"
#include "gl_clipper.h"
#include "gl_portal.h"
#include "gl/renderer/gl_lightdata.h"
#include "gl/renderer/gl_renderer.h"
#include "r_utility.h"
#include "c_cvars.h"
class FSWSceneTexture;
class SWSceneDrawer
{
enum
{
PSCONST_SpecialStart,
PSCONST_SpecialEnd,
PSCONST_Colormap,
PSCONST_ScreenSize,
NumPSCONST
};
enum
{
SHADER_Palette,
SHADER_Truecolor,
SHADER_PaletteCM,
SHADER_TruecolorCM,
NUM_SHADERS
};
struct FBVERTEX
{
float x, y, z;
uint32_t color;
float tu, tv;
};
FTexture *PaletteTexture = nullptr;
FSWSceneTexture *FBTexture = nullptr;
bool FBIsTruecolor = false;
void BlendView (player_t *CPlayer, float blend[4]);
bool CreateResources();
void BindFBBuffer();
public:
SWSceneDrawer();
~SWSceneDrawer();
void RenderView(player_t *player);
};