Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <glm/glm.hpp>
- #include <string>
- class Shader {
- public:
- unsigned int m_id;
- Shader(const char* vertex_path, const char* fragment_path);
- void use();
- void set_bool(const std::string& name, bool value) const;
- void set_int(const std::string& name, int value) const;
- void set_float(const std::string& name, float value) const;
- void set_mat4(const std::string& name, glm::mat4 value) const;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement