aboutsummaryrefslogtreecommitdiff
path: root/xbmc/rendering/gles/GLESShader.h
diff options
context:
space:
mode:
authorsarbes <sarbes@kodi.tv>2024-04-24 21:53:42 +0200
committerGitHub <noreply@github.com>2024-04-24 21:53:42 +0200
commit8dc175623ae53f79fce0f949536353e8dcc444ac (patch)
treea75651deaf034d39521cd30c9863c9930f4aa6a8 /xbmc/rendering/gles/GLESShader.h
parent7f8591145c25bca49936abd945770d0f02dbd620 (diff)
parent5b73d31eadd3f38b24d045e2a10b47b0052b3620 (diff)
downloadxbmc-8dc175623ae53f79fce0f949536353e8dcc444ac.tar.xz
Merge pull request #25033 from sarbes/font-shader-clipping-gles
GLES: Add font shader clipping
Diffstat (limited to 'xbmc/rendering/gles/GLESShader.h')
-rw-r--r--xbmc/rendering/gles/GLESShader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xbmc/rendering/gles/GLESShader.h b/xbmc/rendering/gles/GLESShader.h
index 1f59895740..ddc31202c5 100644
--- a/xbmc/rendering/gles/GLESShader.h
+++ b/xbmc/rendering/gles/GLESShader.h
@@ -32,6 +32,9 @@ public:
GLint GetContrastLoc() { return m_hContrast; }
GLint GetBrightnessLoc() { return m_hBrightness; }
GLint GetModelLoc() { return m_hModel; }
+ GLint GetMatrixLoc() { return m_hMatrix; }
+ GLint GetShaderClipLoc() { return m_hShaderClip; }
+ GLint GetShaderCoordStepLoc() { return m_hCoordStep; }
bool HardwareClipIsPossible() { return m_clipPossible; }
GLfloat GetClipXFactor() { return m_clipXFactor; }
GLfloat GetClipXOffset() { return m_clipXOffset; }
@@ -44,6 +47,9 @@ protected:
GLint m_hUniCol = 0;
GLint m_hProj = 0;
GLint m_hModel = 0;
+ GLint m_hMatrix{0}; // m_hProj * m_hModel
+ GLint m_hShaderClip{0}; // clipping rect vec4(x1,y1,x2,y2)
+ GLint m_hCoordStep{0}; // step (1/resolution) for the two textures vec4(t1.x,t1.y,t2.x,t2.y)
GLint m_hPos = 0;
GLint m_hCol = 0;
GLint m_hCord0 = 0;