]> git.tdb.fi Git - libs/gl.git/blobdiff - source/sampler.h
Support samplers as independent objects
[libs/gl.git] / source / sampler.h
index 255d1da4b7d8988eb1fb42c50c0fc1356bfa7c7b..e1e9bec5d60332e5331cd6e1e52e421c5256e8e9 100644 (file)
@@ -149,6 +149,10 @@ public:
        void bind() const { bind_to(0); }
        void bind_to(unsigned) const;
 
+       static const Sampler *current(unsigned = 0);
+       static void unbind() { unbind_from(0); }
+       static void unbind_from(unsigned);
+
        void unload();
 };