Karma Engine
Loading...
Searching...
No Matches
Karma::OpenGLShader Class Reference
Inheritance diagram for Karma::OpenGLShader:
Collaboration diagram for Karma::OpenGLShader:

Public Member Functions

 OpenGLShader (const std::string &vertexSrc, const std::string &fragmentSrc)
 
 OpenGLShader (const std::string &vertexSrcFile, const std::string &fragmentSrcFile, std::shared_ptr< UniformBufferObject > ubo, bool bIsFile, const std::string &shaderName)
 
virtual void Bind () const override
 
virtual void Bind (const std::string &texShaderNames) const override
 
virtual void UnBind () const override
 
void UploadUniformMat4 (const std::string &name, const glm::mat4 &matrix)
 
- Public Member Functions inherited from Karma::Shader
 Shader (std::shared_ptr< UniformBufferObject > ubo)
 
virtual void GenerateUniformBufferObject ()
 
virtual void BindUniformBufferObject ()
 
std::shared_ptr< UniformBufferObjectGetUniformBufferObject () const
 
const std::string & GetShaderName () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Karma::Shader
static ShaderCreate (const std::string &vertexSrc, const std::string &fragmentSrc)
 
static ShaderCreate (const std::string &vertexSrcFile, const std::string &fragmentSrcFile, std::shared_ptr< UniformBufferObject > ubo, bool bIsFile, const std::string &shaderName="NoNamedShader")
 
- Protected Attributes inherited from Karma::Shader
std::string m_ShaderName
 

Member Function Documentation

◆ Bind() [1/2]

void Karma::OpenGLShader::Bind ( ) const
overridevirtual

Reimplemented from Karma::Shader.

◆ Bind() [2/2]

void Karma::OpenGLShader::Bind ( const std::string & texShaderNames) const
overridevirtual

Reimplemented from Karma::Shader.

◆ UnBind()

void Karma::OpenGLShader::UnBind ( ) const
overridevirtual

Reimplemented from Karma::Shader.


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