Advertisement
acampbellblack

Untitled

Jan 22nd, 2024
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <glm/glm.hpp>
  4.  
  5. #include <string>
  6.  
  7. class Shader {
  8. public:
  9.     unsigned int m_id;
  10.    
  11.     Shader(const char* vertex_path, const char* fragment_path);
  12.  
  13.     void use();
  14.  
  15.     void set_bool(const std::string& name, bool value) const;
  16.     void set_int(const std::string& name, int value) const;
  17.     void set_float(const std::string& name, float value) const;
  18.     void set_mat4(const std::string& name, glm::mat4 value) const;
  19. };
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement