]> git.sesse.net Git - casparcg/blob - core/mixer/gpu/shader.h
caea024b9af1e995d3cecba5c67c2e16f6d92866
[casparcg] / core / mixer / gpu / shader.h
1 #pragma once\r
2 \r
3 #include <string>\r
4 \r
5 #include <common/memory/safe_ptr.h>\r
6 \r
7 #include <boost/noncopyable.hpp>\r
8 \r
9 namespace caspar { namespace core {\r
10                 \r
11 class shader : boost::noncopyable\r
12 {\r
13 public:\r
14         shader(const std::string& vertex_source_str, const std::string& fragment_source_str);\r
15         void use();\r
16         void set(const std::string& name, int value);\r
17         void set(const std::string& name, float value);\r
18         void set(const std::string& name, double value);\r
19 private:\r
20         struct implementation;\r
21         safe_ptr<implementation> impl_;\r
22 };\r
23 \r
24 }}