18#define GLAD_GL_IMPLEMENTATION
20#include <glm/gtc/matrix_transform.hpp>
38 Shader(std::string vertexshaderName, std::string fragmentshaderName){
57 GLuint
LoadShaders(
const char * vertex_file_path,
const char * fragment_file_path);
60 void initShaders(std::string vertexshaderName, std::string fragmentshaderName);
Shader.
Definition Shader.hpp:27
Shader()
Default constructor.
Definition Shader.hpp:32
void updateMatrices(glm::mat4 MVP, glm::mat4 M, glm::mat4 V)
updateMatrices
Definition Shader.cpp:123
Shader(std::string shaderName)
Constructor with shader source specification.
Definition Shader.hpp:45
Shader(std::string vertexshaderName, std::string fragmentshaderName)
Constructor with shader source specification.
Definition Shader.hpp:38
GLuint m_MVPID
all shader should get information about the MVP matrix
Definition Shader.hpp:76
GLuint m_MID
all shader should get information about the model matrix
Definition Shader.hpp:78
virtual void bind()
bind
Definition Shader.cpp:144
void initShaders(std::string vertexshaderName, std::string fragmentshaderName)
initShaders
Definition Shader.cpp:115
GLuint m_VID
all shader should get information about the view matrix
Definition Shader.hpp:77
void updateMVP(glm::mat4 MVP)
updateMVP
Definition Shader.cpp:132
GLuint LoadShaders(const char *vertex_file_path, const char *fragment_file_path)
LoadShaders.
Definition Shader.cpp:19
GLuint programID
Definition Shader.hpp:75
virtual ~Shader()
Destructor.
Definition Shader.cpp:138