12#include "glm/gtc/matrix_transform.hpp"
13#include "glm/gtc/type_ptr.hpp"
15#include "../../files/FileReader.h"
31 Shader(
const char* vertexPath,
const char* fragmentPath);
43 void setBool(
const std::string& name,
bool value)
const;
50 void setInt(
const std::string& name,
int value)
const;
57 void setFloat(
const std::string& name,
float value)
const;
64 void setMat4(
const std::string& name, glm::mat4 value)
const;
71 void setVec3(
const std::string& name, glm::vec3 value)
const;
78 void setVec4(
const std::string& name, glm::vec4 value)
const;
90 int sizeofMultiplier = 0;
Shader(const char *vertexPath, const char *fragmentPath)
Definition Shader.cpp:3
GLuint ID
Definition Shader.h:26
void use()
Definition Shader.cpp:58
void setBool(const std::string &name, bool value) const
Definition Shader.cpp:63
void setVec3(const std::string &name, glm::vec3 value) const
Definition Shader.cpp:83
void vertexAttribPointer(int index, int length, int type, int totalSize)
Definition Shader.cpp:93
void setInt(const std::string &name, int value) const
Definition Shader.cpp:68
void setMat4(const std::string &name, glm::mat4 value) const
Definition Shader.cpp:78
void setVec4(const std::string &name, glm::vec4 value) const
Definition Shader.cpp:88
void setFloat(const std::string &name, float value) const
Definition Shader.cpp:73