[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / rendering / gles / GLESShader.h
blob2fd3b0716e67031159894c56ca26f0a761b97d38
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "guilib/Shader.h"
13 #include <string>
15 class CGLESShader : public Shaders::CGLSLShaderProgram
17 public:
18 CGLESShader(const char* shader, const std::string& prefix);
19 CGLESShader(const char* vshader, const char* fshader, const std::string& prefix);
20 void OnCompiledAndLinked() override;
21 bool OnEnabled() override;
22 void Free();
24 GLint GetPosLoc() { return m_hPos; }
25 GLint GetColLoc() { return m_hCol; }
26 GLint GetCord0Loc() { return m_hCord0; }
27 GLint GetCord1Loc() { return m_hCord1; }
28 GLint GetDepthLoc() { return m_hDepth; }
29 GLint GetUniColLoc() { return m_hUniCol; }
30 GLint GetCoord0MatrixLoc() { return m_hCoord0Matrix; }
31 GLint GetFieldLoc() { return m_hField; }
32 GLint GetStepLoc() { return m_hStep; }
33 GLint GetContrastLoc() { return m_hContrast; }
34 GLint GetBrightnessLoc() { return m_hBrightness; }
35 GLint GetModelLoc() { return m_hModel; }
36 GLint GetMatrixLoc() { return m_hMatrix; }
37 GLint GetShaderClipLoc() { return m_hShaderClip; }
38 GLint GetShaderCoordStepLoc() { return m_hCoordStep; }
39 bool HardwareClipIsPossible() { return m_clipPossible; }
40 GLfloat GetClipXFactor() { return m_clipXFactor; }
41 GLfloat GetClipXOffset() { return m_clipXOffset; }
42 GLfloat GetClipYFactor() { return m_clipYFactor; }
43 GLfloat GetClipYOffset() { return m_clipYOffset; }
45 protected:
46 GLint m_hTex0 = 0;
47 GLint m_hTex1 = 0;
48 GLint m_hUniCol = 0;
49 GLint m_hProj = 0;
50 GLint m_hModel = 0;
51 GLint m_hMatrix{0}; // m_hProj * m_hModel
52 GLint m_hShaderClip{0}; // clipping rect vec4(x1,y1,x2,y2)
53 GLint m_hCoordStep{0}; // step (1/resolution) for the two textures vec4(t1.x,t1.y,t2.x,t2.y)
54 GLint m_hPos = 0;
55 GLint m_hCol = 0;
56 GLint m_hCord0 = 0;
57 GLint m_hCord1 = 0;
58 GLint m_hCoord0Matrix = 0;
59 GLint m_hField = 0;
60 GLint m_hStep = 0;
61 GLint m_hContrast = 0;
62 GLint m_hBrightness = 0;
63 GLint m_hDepth = 0;
65 const GLfloat *m_proj;
66 const GLfloat *m_model;
68 bool m_clipPossible;
69 GLfloat m_clipXFactor;
70 GLfloat m_clipXOffset;
71 GLfloat m_clipYFactor;
72 GLfloat m_clipYOffset;
74 GLfloat m_sdrPeak;