mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-23 09:20:55 +00:00
29 lines
No EOL
521 B
C++
29 lines
No EOL
521 B
C++
#ifndef __GL_PRESENTSHADER_H
|
|
#define __GL_PRESENTSHADER_H
|
|
|
|
#include "gl_shaderprogram.h"
|
|
|
|
class FPresentShaderBase
|
|
{
|
|
public:
|
|
virtual void Bind() = 0;
|
|
|
|
FBufferedUniform1f InvGamma;
|
|
FBufferedUniform1f Contrast;
|
|
FBufferedUniform1f Brightness;
|
|
FBufferedUniform2f Scale;
|
|
|
|
protected:
|
|
virtual void Init(const char * vtx_shader_name, const char * program_name);
|
|
FShaderProgram mShader;
|
|
};
|
|
|
|
class FPresentShader : public FPresentShaderBase
|
|
{
|
|
public:
|
|
void Bind() override;
|
|
|
|
FBufferedUniformSampler InputTexture;
|
|
};
|
|
|
|
#endif |