Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
Shaders::GLES::BaseVideoFilterShader Class Reference

#include <VideoFilterShaderGLES.h>

Inheritance diagram for Shaders::GLES::BaseVideoFilterShader:
Shaders::CGLSLShaderProgram Shaders::CShaderProgram Shaders::GLES::ConvolutionFilterShader Shaders::GLES::DefaultFilterShader

Public Member Functions

 BaseVideoFilterShader ()
 
void OnCompiledAndLinked () override
 
bool OnEnabled () override
 
virtual void SetSourceTexture (GLint ytex)
 
virtual void SetWidth (int w)
 
virtual void SetHeight (int h)
 
virtual bool GetTextureFilter (GLint &filter)
 
virtual GLint GetVertexLoc ()
 
virtual GLint GetcoordLoc ()
 
virtual void SetMatrices (const GLfloat *p, const GLfloat *m)
 
virtual void SetAlpha (GLfloat alpha)
 
- 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

int m_width
 
int m_height
 
float m_stepX
 
float m_stepY
 
GLint m_sourceTexUnit = 0
 
GLint m_hSourceTex = 0
 
GLint m_hStepXY = 0
 
GLint m_hVertex = -1
 
GLint m_hcoord = -1
 
GLint m_hProj = -1
 
GLint m_hModel = -1
 
GLint m_hAlpha = -1
 
const GLfloat * m_proj
 
const GLfloat * m_model
 
GLfloat m_alpha = -1
 
- 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

◆ BaseVideoFilterShader()

BaseVideoFilterShader::BaseVideoFilterShader ( )

Member Function Documentation

◆ GetcoordLoc()

virtual GLint Shaders::GLES::BaseVideoFilterShader::GetcoordLoc ( )
inlinevirtual

◆ GetTextureFilter()

virtual bool Shaders::GLES::BaseVideoFilterShader::GetTextureFilter ( GLint & filter)
inlinevirtual

◆ GetVertexLoc()

virtual GLint Shaders::GLES::BaseVideoFilterShader::GetVertexLoc ( )
inlinevirtual

◆ OnCompiledAndLinked()

void BaseVideoFilterShader::OnCompiledAndLinked ( )
overridevirtual

◆ OnEnabled()

bool BaseVideoFilterShader::OnEnabled ( )
overridevirtual

◆ SetAlpha()

virtual void Shaders::GLES::BaseVideoFilterShader::SetAlpha ( GLfloat alpha)
inlinevirtual

◆ SetHeight()

virtual void Shaders::GLES::BaseVideoFilterShader::SetHeight ( int h)
inlinevirtual

◆ SetMatrices()

virtual void Shaders::GLES::BaseVideoFilterShader::SetMatrices ( const GLfloat * p,
const GLfloat * m )
inlinevirtual

◆ SetSourceTexture()

virtual void Shaders::GLES::BaseVideoFilterShader::SetSourceTexture ( GLint ytex)
inlinevirtual

◆ SetWidth()

virtual void Shaders::GLES::BaseVideoFilterShader::SetWidth ( int w)
inlinevirtual

Member Data Documentation

◆ m_alpha

GLfloat Shaders::GLES::BaseVideoFilterShader::m_alpha = -1
protected

◆ m_hAlpha

GLint Shaders::GLES::BaseVideoFilterShader::m_hAlpha = -1
protected

◆ m_hcoord

GLint Shaders::GLES::BaseVideoFilterShader::m_hcoord = -1
protected

◆ m_height

int Shaders::GLES::BaseVideoFilterShader::m_height
protected

◆ m_hModel

GLint Shaders::GLES::BaseVideoFilterShader::m_hModel = -1
protected

◆ m_hProj

GLint Shaders::GLES::BaseVideoFilterShader::m_hProj = -1
protected

◆ m_hSourceTex

GLint Shaders::GLES::BaseVideoFilterShader::m_hSourceTex = 0
protected

◆ m_hStepXY

GLint Shaders::GLES::BaseVideoFilterShader::m_hStepXY = 0
protected

◆ m_hVertex

GLint Shaders::GLES::BaseVideoFilterShader::m_hVertex = -1
protected

◆ m_model

const GLfloat* Shaders::GLES::BaseVideoFilterShader::m_model
protected

◆ m_proj

const GLfloat* Shaders::GLES::BaseVideoFilterShader::m_proj
protected

◆ m_sourceTexUnit

GLint Shaders::GLES::BaseVideoFilterShader::m_sourceTexUnit = 0
protected

◆ m_stepX

float Shaders::GLES::BaseVideoFilterShader::m_stepX
protected

◆ m_stepY

float Shaders::GLES::BaseVideoFilterShader::m_stepY
protected

◆ m_width

int Shaders::GLES::BaseVideoFilterShader::m_width
protected

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