shader_program.hpp 462 B

123456789101112131415161718192021222324
  1. //
  2. // shader_program.hpp
  3. // graphics
  4. //
  5. // Created by Sam Jaffe on 7/5/16.
  6. //
  7. #pragma once
  8. #include <string>
  9. #include "game/util/flyweight.hpp"
  10. namespace graphics {
  11. class shader_program : public identity<shader_program> {
  12. public:
  13. static flyweight<shader_program> create(std::string const & frag,
  14. std::string const & vert);
  15. void activate() const;
  16. private:
  17. shader_program(unsigned int);
  18. };
  19. }