Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
Shaders::CShader Class Referenceabstract

#include <Shader.h>

Inheritance diagram for Shaders::CShader:
Shaders::CPixelShader Shaders::CVertexShader Shaders::CGLSLPixelShader Shaders::CGLSLVertexShader

Public Member Functions

 CShader ()=default
 
virtual ~CShader ()=default
 
virtual bool Compile ()=0
 
virtual void Free ()=0
 
virtual GLuint Handle ()=0
 
virtual void SetSource (const std::string &src)
 
virtual bool LoadSource (const std::string &filename, const std::string &prefix="")
 
virtual bool AppendSource (const std::string &filename)
 
virtual bool InsertSource (const std::string &filename, const std::string &loc)
 
bool OK () const
 

Protected Attributes

std::string m_source
 
std::string m_lastLog
 
std::vector< std::string > m_attr
 
bool m_compiled = false
 

Constructor & Destructor Documentation

§ CShader()

Shaders::CShader::CShader ( )
default

§ ~CShader()

virtual Shaders::CShader::~CShader ( )
virtualdefault

Member Function Documentation

§ AppendSource()

bool CShader::AppendSource ( const std::string &  filename)
virtual

§ Compile()

virtual bool Shaders::CShader::Compile ( )
pure virtual

§ Free()

virtual void Shaders::CShader::Free ( )
pure virtual

§ Handle()

virtual GLuint Shaders::CShader::Handle ( )
pure virtual

§ InsertSource()

bool CShader::InsertSource ( const std::string &  filename,
const std::string &  loc 
)
virtual

§ LoadSource()

bool CShader::LoadSource ( const std::string &  filename,
const std::string &  prefix = "" 
)
virtual

§ OK()

bool Shaders::CShader::OK ( ) const
inline

§ SetSource()

virtual void Shaders::CShader::SetSource ( const std::string &  src)
inlinevirtual

Member Data Documentation

§ m_attr

std::vector<std::string> Shaders::CShader::m_attr
protected

§ m_compiled

bool Shaders::CShader::m_compiled = false
protected

§ m_lastLog

std::string Shaders::CShader::m_lastLog
protected

§ m_source

std::string Shaders::CShader::m_source
protected

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