| 123456789101112131415161718192021222324 |
- //
- // shader_program.hpp
- // graphics
- //
- // Created by Sam Jaffe on 7/5/16.
- //
- #pragma once
- #include <string>
- #include "game/util/flyweight.hpp"
- namespace graphics {
- class shader_program : public identity<shader_program> {
- public:
- static flyweight<shader_program> create(std::string const & frag,
- std::string const & vert);
- void activate() const;
- private:
- shader_program(unsigned int);
- };
- }
|