From 1fc1fac2c243ca0f50617b474aee2a355beef102 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 7 Apr 2018 19:41:21 +0200 Subject: [PATCH] - added missing header. --- src/gl/scene/gl_swscene.h | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/gl/scene/gl_swscene.h diff --git a/src/gl/scene/gl_swscene.h b/src/gl/scene/gl_swscene.h new file mode 100644 index 0000000000..5140733d03 --- /dev/null +++ b/src/gl/scene/gl_swscene.h @@ -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); +}; +