Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
kodi::gui::gl::CShader Class Referenceabstract

CShader - base class. More...

#include <Shader.h>

Inheritance diagram for kodi::gui::gl::CShader:
kodi::gui::gl::CPixelShader kodi::gui::gl::CVertexShader

Public Member Functions

 CShader ()=default
 
virtual ~CShader ()=default
 
virtual bool Compile (const std::string &extraBegin="", const std::string &extraEnd="")=0
 
virtual void Free ()=0
 
virtual GLuint Handle ()=0
 
bool LoadSource (const std::string &file)
 
bool OK () const
 

Protected Attributes

std::string m_source
 
std::string m_lastLog
 
bool m_compiled = false
 

Detailed Description

CShader - base class.

Constructor & Destructor Documentation

◆ CShader()

kodi::gui::gl::CShader::CShader ( )
default

◆ ~CShader()

virtual kodi::gui::gl::CShader::~CShader ( )
virtualdefault

Member Function Documentation

◆ Compile()

virtual bool kodi::gui::gl::CShader::Compile ( const std::string & extraBegin = "",
const std::string & extraEnd = "" )
pure virtual

◆ Free()

virtual void kodi::gui::gl::CShader::Free ( )
pure virtual

◆ Handle()

virtual GLuint kodi::gui::gl::CShader::Handle ( )
pure virtual

◆ LoadSource()

bool kodi::gui::gl::CShader::LoadSource ( const std::string & file)
inline

◆ OK()

bool kodi::gui::gl::CShader::OK ( ) const
inline

Member Data Documentation

◆ m_compiled

bool kodi::gui::gl::CShader::m_compiled = false
protected

◆ m_lastLog

std::string kodi::gui::gl::CShader::m_lastLog
protected

◆ m_source

std::string kodi::gui::gl::CShader::m_source
protected

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