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

#include <Shader.h>

Inheritance diagram for Shaders::CGLSLShaderProgram:
Shaders::CShaderProgram CGLESShader CGLShader Shaders::GL::BaseVideoFilterShader Shaders::GL::BaseYUV2RGBGLSLShader Shaders::GLES::BaseVideoFilterShader Shaders::GLES::BaseYUV2RGBGLSLShader Shaders::GL::ConvolutionFilterShader Shaders::GL::DefaultFilterShader Shaders::GL::StretchFilterShader Shaders::GL::YUV2RGBFilterShader4 Shaders::GL::YUV2RGBProgressiveShader Shaders::GLES::ConvolutionFilterShader Shaders::GLES::DefaultFilterShader Shaders::GLES::YUV2RGBBobShader Shaders::GLES::YUV2RGBFilterShader Shaders::GLES::YUV2RGBProgressiveShader

Public Member Functions

 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 OnCompiledAndLinked ()
 
virtual bool OnEnabled ()
 
virtual void OnDisabled ()
 
virtual GLuint ProgramHandle ()
 

Protected Member Functions

void Free ()
 

Protected Attributes

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
 

Constructor & Destructor Documentation

◆ CGLSLShaderProgram() [1/2]

CGLSLShaderProgram::CGLSLShaderProgram ( )

◆ CGLSLShaderProgram() [2/2]

CGLSLShaderProgram::CGLSLShaderProgram ( const std::string & vert,
const std::string & frag )

◆ ~CGLSLShaderProgram()

CGLSLShaderProgram::~CGLSLShaderProgram ( )
override

Member Function Documentation

◆ CompileAndLink()

bool CGLSLShaderProgram::CompileAndLink ( )
overridevirtual

◆ Disable()

void CGLSLShaderProgram::Disable ( )
overridevirtual

◆ Enable()

bool CGLSLShaderProgram::Enable ( )
overridevirtual

◆ Free()

void CGLSLShaderProgram::Free ( )
protected

Member Data Documentation

◆ m_lastProgram

GLint Shaders::CGLSLShaderProgram::m_lastProgram
protected

◆ m_validated

bool Shaders::CGLSLShaderProgram::m_validated = false
protected

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