]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturing.h
Add getter for Animation::looping
[libs/gl.git] / source / texturing.h
index 34141c64136fb4d4d0dac7dfbdc90e76cbad6ba0..2b409d64fb713ee221a4842110832258bd92f711 100644 (file)
@@ -14,6 +14,8 @@ class Texturing: public Bindable<Texturing>
 private:
        std::vector<const Texture *> attachments;
 
+       static bool legacy_used;
+
 public:
        ~Texturing();
 
@@ -21,12 +23,16 @@ public:
        void detach(unsigned);
 private:
        void set_attachment(unsigned, const Texture *);
-       void bind_attachment(unsigned) const;
+public:
+       const Texture *get_attached_texture(unsigned) const;
+
+private:
+       void bind_attachment(unsigned, bool) const;
 
        static void unbind_attachment(unsigned);
 
 public:
-       void bind() const;
+       void bind(bool = true) const;
 
        static void unbind();
 };