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

#include <GLShader.h>

Inheritance diagram for CGLShader:
Shaders::CGLSLShaderProgram Shaders::CShaderProgram

Public Member Functions

 CGLShader (const char *shader, const std::string &prefix)
 
 CGLShader (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 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_hDepth = 0
 
const GLfloat * m_proj = nullptr
 
const GLfloat * m_model = nullptr
 
bool m_clipPossible = false
 
GLfloat m_clipXFactor
 
GLfloat m_clipXOffset
 
GLfloat m_clipYFactor
 
GLfloat m_clipYOffset
 
- 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

◆ CGLShader() [1/2]

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

◆ CGLShader() [2/2]

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

Member Function Documentation

◆ Free()

void CGLShader::Free ( )

◆ GetClipXFactor()

GLfloat CGLShader::GetClipXFactor ( )
inline

◆ GetClipXOffset()

GLfloat CGLShader::GetClipXOffset ( )
inline

◆ GetClipYFactor()

GLfloat CGLShader::GetClipYFactor ( )
inline

◆ GetClipYOffset()

GLfloat CGLShader::GetClipYOffset ( )
inline

◆ GetColLoc()

GLint CGLShader::GetColLoc ( )
inline

◆ GetCord0Loc()

GLint CGLShader::GetCord0Loc ( )
inline

◆ GetCord1Loc()

GLint CGLShader::GetCord1Loc ( )
inline

◆ GetDepthLoc()

GLint CGLShader::GetDepthLoc ( )
inline

◆ GetMatrixLoc()

GLint CGLShader::GetMatrixLoc ( )
inline

◆ GetModelLoc()

GLint CGLShader::GetModelLoc ( )
inline

◆ GetPosLoc()

GLint CGLShader::GetPosLoc ( )
inline

◆ GetShaderClipLoc()

GLint CGLShader::GetShaderClipLoc ( )
inline

◆ GetShaderCoordStepLoc()

GLint CGLShader::GetShaderCoordStepLoc ( )
inline

◆ GetUniColLoc()

GLint CGLShader::GetUniColLoc ( )
inline

◆ HardwareClipIsPossible()

bool CGLShader::HardwareClipIsPossible ( )
inline

◆ OnCompiledAndLinked()

void CGLShader::OnCompiledAndLinked ( )
overridevirtual

Reimplemented from Shaders::CShaderProgram.

◆ OnEnabled()

bool CGLShader::OnEnabled ( )
overridevirtual

Reimplemented from Shaders::CShaderProgram.

Member Data Documentation

◆ m_clipPossible

bool CGLShader::m_clipPossible = false
protected

◆ m_clipXFactor

GLfloat CGLShader::m_clipXFactor
protected

◆ m_clipXOffset

GLfloat CGLShader::m_clipXOffset
protected

◆ m_clipYFactor

GLfloat CGLShader::m_clipYFactor
protected

◆ m_clipYOffset

GLfloat CGLShader::m_clipYOffset
protected

◆ m_hCol

GLint CGLShader::m_hCol = 0
protected

◆ m_hCoordStep

GLint CGLShader::m_hCoordStep {0}
protected

◆ m_hCord0

GLint CGLShader::m_hCord0 = 0
protected

◆ m_hCord1

GLint CGLShader::m_hCord1 = 0
protected

◆ m_hDepth

GLint CGLShader::m_hDepth = 0
protected

◆ m_hMatrix

GLint CGLShader::m_hMatrix {0}
protected

◆ m_hModel

GLint CGLShader::m_hModel = 0
protected

◆ m_hPos

GLint CGLShader::m_hPos = 0
protected

◆ m_hProj

GLint CGLShader::m_hProj = 0
protected

◆ m_hShaderClip

GLint CGLShader::m_hShaderClip {0}
protected

◆ m_hTex0

GLint CGLShader::m_hTex0 = 0
protected

◆ m_hTex1

GLint CGLShader::m_hTex1 = 0
protected

◆ m_hUniCol

GLint CGLShader::m_hUniCol = 0
protected

◆ m_model

const GLfloat* CGLShader::m_model = nullptr
protected

◆ m_proj

const GLfloat* CGLShader::m_proj = nullptr
protected

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