Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CGLESShader Class Reference

#include <GLESShader.h>

Inheritance diagram for CGLESShader:
Shaders::CGLSLShaderProgram Shaders::CShaderProgram

Public Member Functions

 CGLESShader (const char *shader, const std::string &prefix)
 
 CGLESShader (const char *vshader, const char *fshader, const std::string &prefix)
 
void OnCompiledAndLinked () override
 
bool OnEnabled () override
 
void Free ()
 
GLint GetPosLoc ()
 
GLint GetColLoc ()
 
GLint GetCord0Loc ()
 
GLint GetCord1Loc ()
 
GLint GetDepthLoc ()
 
GLint GetUniColLoc ()
 
GLint GetCoord0MatrixLoc ()
 
GLint GetFieldLoc ()
 
GLint GetStepLoc ()
 
GLint GetContrastLoc ()
 
GLint GetBrightnessLoc ()
 
GLint GetModelLoc ()
 
GLint GetMatrixLoc ()
 
GLint GetShaderClipLoc ()
 
GLint GetShaderCoordStepLoc ()
 
bool HardwareClipIsPossible ()
 
GLfloat GetClipXFactor ()
 
GLfloat GetClipXOffset ()
 
GLfloat GetClipYFactor ()
 
GLfloat GetClipYOffset ()
 
- Public Member Functions inherited from Shaders::CGLSLShaderProgram
 CGLSLShaderProgram ()
 
 CGLSLShaderProgram (const std::string &vert, const std::string &frag)
 
 ~CGLSLShaderProgram () override
 
bool Enable () override
 
void Disable () override
 
bool CompileAndLink () override
 
- Public Member Functions inherited from Shaders::CShaderProgram
 CShaderProgram ()=default
 
virtual ~CShaderProgram ()
 
bool OK () const
 
CVertexShaderVertexShader ()
 
CPixelShaderPixelShader ()
 
virtual void OnDisabled ()
 
virtual GLuint ProgramHandle ()
 

Protected Attributes

GLint m_hTex0 = 0
 
GLint m_hTex1 = 0
 
GLint m_hUniCol = 0
 
GLint m_hProj = 0
 
GLint m_hModel = 0
 
GLint m_hMatrix {0}
 
GLint m_hShaderClip {0}
 
GLint m_hCoordStep {0}
 
GLint m_hPos = 0
 
GLint m_hCol = 0
 
GLint m_hCord0 = 0
 
GLint m_hCord1 = 0
 
GLint m_hCoord0Matrix = 0
 
GLint m_hField = 0
 
GLint m_hStep = 0
 
GLint m_hContrast = 0
 
GLint m_hBrightness = 0
 
GLint m_hDepth = 0
 
const GLfloat * m_proj
 
const GLfloat * m_model
 
bool m_clipPossible
 
GLfloat m_clipXFactor
 
GLfloat m_clipXOffset
 
GLfloat m_clipYFactor
 
GLfloat m_clipYOffset
 
GLfloat m_sdrPeak
 
- Protected Attributes inherited from Shaders::CGLSLShaderProgram
GLint m_lastProgram
 
bool m_validated = false
 
- Protected Attributes inherited from Shaders::CShaderProgram
CVertexShaderm_pVP = nullptr
 
CPixelShaderm_pFP = nullptr
 
GLuint m_shaderProgram = 0
 
bool m_ok = false
 

Additional Inherited Members

- Protected Member Functions inherited from Shaders::CGLSLShaderProgram
void Free ()
 

Constructor & Destructor Documentation

◆ CGLESShader() [1/2]

CGLESShader::CGLESShader ( const char * shader,
const std::string & prefix )

◆ CGLESShader() [2/2]

CGLESShader::CGLESShader ( const char * vshader,
const char * fshader,
const std::string & prefix )

Member Function Documentation

◆ Free()

void CGLESShader::Free ( )

◆ GetBrightnessLoc()

GLint CGLESShader::GetBrightnessLoc ( )
inline

◆ GetClipXFactor()

GLfloat CGLESShader::GetClipXFactor ( )
inline

◆ GetClipXOffset()

GLfloat CGLESShader::GetClipXOffset ( )
inline

◆ GetClipYFactor()

GLfloat CGLESShader::GetClipYFactor ( )
inline

◆ GetClipYOffset()

GLfloat CGLESShader::GetClipYOffset ( )
inline

◆ GetColLoc()

GLint CGLESShader::GetColLoc ( )
inline

◆ GetContrastLoc()

GLint CGLESShader::GetContrastLoc ( )
inline

◆ GetCoord0MatrixLoc()

GLint CGLESShader::GetCoord0MatrixLoc ( )
inline

◆ GetCord0Loc()

GLint CGLESShader::GetCord0Loc ( )
inline

◆ GetCord1Loc()

GLint CGLESShader::GetCord1Loc ( )
inline

◆ GetDepthLoc()

GLint CGLESShader::GetDepthLoc ( )
inline

◆ GetFieldLoc()

GLint CGLESShader::GetFieldLoc ( )
inline

◆ GetMatrixLoc()

GLint CGLESShader::GetMatrixLoc ( )
inline

◆ GetModelLoc()

GLint CGLESShader::GetModelLoc ( )
inline

◆ GetPosLoc()

GLint CGLESShader::GetPosLoc ( )
inline

◆ GetShaderClipLoc()

GLint CGLESShader::GetShaderClipLoc ( )
inline

◆ GetShaderCoordStepLoc()

GLint CGLESShader::GetShaderCoordStepLoc ( )
inline

◆ GetStepLoc()

GLint CGLESShader::GetStepLoc ( )
inline

◆ GetUniColLoc()

GLint CGLESShader::GetUniColLoc ( )
inline

◆ HardwareClipIsPossible()

bool CGLESShader::HardwareClipIsPossible ( )
inline

◆ OnCompiledAndLinked()

void CGLESShader::OnCompiledAndLinked ( )
overridevirtual

Reimplemented from Shaders::CShaderProgram.

◆ OnEnabled()

bool CGLESShader::OnEnabled ( )
overridevirtual

Reimplemented from Shaders::CShaderProgram.

Member Data Documentation

◆ m_clipPossible

bool CGLESShader::m_clipPossible
protected

◆ m_clipXFactor

GLfloat CGLESShader::m_clipXFactor
protected

◆ m_clipXOffset

GLfloat CGLESShader::m_clipXOffset
protected

◆ m_clipYFactor

GLfloat CGLESShader::m_clipYFactor
protected

◆ m_clipYOffset

GLfloat CGLESShader::m_clipYOffset
protected

◆ m_hBrightness

GLint CGLESShader::m_hBrightness = 0
protected

◆ m_hCol

GLint CGLESShader::m_hCol = 0
protected

◆ m_hContrast

GLint CGLESShader::m_hContrast = 0
protected

◆ m_hCoord0Matrix

GLint CGLESShader::m_hCoord0Matrix = 0
protected

◆ m_hCoordStep

GLint CGLESShader::m_hCoordStep {0}
protected

◆ m_hCord0

GLint CGLESShader::m_hCord0 = 0
protected

◆ m_hCord1

GLint CGLESShader::m_hCord1 = 0
protected

◆ m_hDepth

GLint CGLESShader::m_hDepth = 0
protected

◆ m_hField

GLint CGLESShader::m_hField = 0
protected

◆ m_hMatrix

GLint CGLESShader::m_hMatrix {0}
protected

◆ m_hModel

GLint CGLESShader::m_hModel = 0
protected

◆ m_hPos

GLint CGLESShader::m_hPos = 0
protected

◆ m_hProj

GLint CGLESShader::m_hProj = 0
protected

◆ m_hShaderClip

GLint CGLESShader::m_hShaderClip {0}
protected

◆ m_hStep

GLint CGLESShader::m_hStep = 0
protected

◆ m_hTex0

GLint CGLESShader::m_hTex0 = 0
protected

◆ m_hTex1

GLint CGLESShader::m_hTex1 = 0
protected

◆ m_hUniCol

GLint CGLESShader::m_hUniCol = 0
protected

◆ m_model

const GLfloat* CGLESShader::m_model
protected

◆ m_proj

const GLfloat* CGLESShader::m_proj
protected

◆ m_sdrPeak

GLfloat CGLESShader::m_sdrPeak
protected

The documentation for this class was generated from the following files: