11 #include "GLSLOutput.h" 12 #include "cores/VideoSettings.h" 13 #include "guilib/Shader.h" 15 #include "system_gl.h" 27 virtual bool GetTextureFilter(GLint& filter) {
return false; }
29 void SetSourceTexture(GLint ytex) { m_sourceTexUnit = ytex; }
33 m_stepX = w > 0 ? 1.0f / w : 0;
38 m_stepY = h > 0 ? 1.0f / h : 0;
40 void SetNonLinStretch(
float stretch) { m_stretch = stretch; }
41 void SetAlpha(GLfloat alpha) { m_alpha = alpha; }
43 GLint GetVertexLoc() {
return m_hVertex; }
44 GLint GetCoordLoc() {
return m_hCoord; }
46 void SetMatrices(
const GLfloat* p,
const GLfloat* m)
59 GLint m_sourceTexUnit = 0;
60 const GLfloat* m_proj =
nullptr;
61 const GLfloat* m_model =
nullptr;
64 GLint m_hSourceTex = 0;
66 GLint m_hStretch = -1;
79 void OnCompiledAndLinked()
override;
80 bool OnEnabled()
override;
81 void OnDisabled()
override;
84 bool GetTextureFilter(GLint& filter)
override { filter = GL_NEAREST;
return true; }
88 GLuint m_kernelTex1 = 0;
93 ESCALINGMETHOD m_method;
95 GLint m_internalformat;
104 void OnCompiledAndLinked()
override;
105 bool OnEnabled()
override;
111 void OnCompiledAndLinked()
override;
112 bool OnEnabled()
override;
Definition: VideoFilterShaderGL.h:100
Definition: LinuxRendererGL.h:30
Definition: VideoFilterShaderGL.h:74
Definition: VideoFilterShaderGL.h:22
Definition: GLSLOutput.h:18
Definition: VideoFilterShaderGL.h:108