mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- added missing header.
This commit is contained in:
parent
adbeb3f251
commit
1fc1fac2c2
1 changed files with 58 additions and 0 deletions
58
src/gl/scene/gl_swscene.h
Normal file
58
src/gl/scene/gl_swscene.h
Normal 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);
|
||||
};
|
||||
|
Loading…
Reference in a new issue