Merge pull request #1322 from degasus/ogl-pp

OGL: force enable postprocessing
This commit is contained in:
skidau
2014-10-25 13:48:27 +11:00
7 changed files with 45 additions and 135 deletions

View File

@ -22,16 +22,15 @@ public:
OpenGLPostProcessing();
~OpenGLPostProcessing();
void BindTargetFramebuffer() override;
void BlitToScreen() override;
void Update(u32 width, u32 height) override;
void BlitFromTexture(TargetRectangle src, TargetRectangle dst,
int src_texture, int src_width, int src_height) override;
void ApplyShader() override;
private:
GLuint m_fbo;
GLuint m_texture;
bool m_initialized;
SHADER m_shader;
GLuint m_uniform_resolution;
GLuint m_uniform_src_rect;
GLuint m_uniform_time;
std::string m_glsl_header;