NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::OpenGLShader Class Referencefinal

#include <OpenGLShader.h>

Inheritance diagram for NoJob::OpenGLShader:
NoJob::Shader

Public Member Functions

 OpenGLShader (const std::string &vertexSource, const std::string &fragmentSource)
 ~OpenGLShader () override
void Bind () const override
void Unbind () const override
void SetMat4 (const std::string &name, const glm::mat4 &value) override
void SetInt (const std::string &name, int value) override
void SetFloat (const std::string &name, float value) override
void SetFloat3 (const std::string &name, const glm::vec3 &value) override
void SetFloat4 (const std::string &name, const glm::vec4 &value) override
Public Member Functions inherited from NoJob::Shader
virtual ~Shader ()=default

Additional Inherited Members

Static Public Member Functions inherited from NoJob::Shader
static std::shared_ptr< Shader > Create (const std::string &vertexSource, const std::string &fragmentSource)

Detailed Description

Definition at line 12 of file OpenGLShader.h.

Constructor & Destructor Documentation

◆ OpenGLShader()

NoJob::OpenGLShader::OpenGLShader ( const std::string & vertexSource,
const std::string & fragmentSource )

Definition at line 9 of file OpenGLShader.cpp.

◆ ~OpenGLShader()

NoJob::OpenGLShader::~OpenGLShader ( )
override

Definition at line 49 of file OpenGLShader.cpp.

Member Function Documentation

◆ Bind()

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

Implements NoJob::Shader.

Definition at line 54 of file OpenGLShader.cpp.

◆ SetFloat()

void NoJob::OpenGLShader::SetFloat ( const std::string & name,
float value )
overridevirtual

Implements NoJob::Shader.

Definition at line 84 of file OpenGLShader.cpp.

◆ SetFloat3()

void NoJob::OpenGLShader::SetFloat3 ( const std::string & name,
const glm::vec3 & value )
overridevirtual

Implements NoJob::Shader.

Definition at line 93 of file OpenGLShader.cpp.

◆ SetFloat4()

void NoJob::OpenGLShader::SetFloat4 ( const std::string & name,
const glm::vec4 & value )
overridevirtual

Implements NoJob::Shader.

Definition at line 102 of file OpenGLShader.cpp.

◆ SetInt()

void NoJob::OpenGLShader::SetInt ( const std::string & name,
int value )
overridevirtual

Implements NoJob::Shader.

Definition at line 75 of file OpenGLShader.cpp.

◆ SetMat4()

void NoJob::OpenGLShader::SetMat4 ( const std::string & name,
const glm::mat4 & value )
overridevirtual

Implements NoJob::Shader.

Definition at line 64 of file OpenGLShader.cpp.

◆ Unbind()

void NoJob::OpenGLShader::Unbind ( ) const
overridevirtual

Implements NoJob::Shader.

Definition at line 59 of file OpenGLShader.cpp.


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