]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturing.cpp
Make Animation::Iterator assignable
[libs/gl.git] / source / texturing.cpp
index 093c602e917c2ec7bf3ee67a626eedb4f4e43ab4..dff3757fdb6d9b8985234e87241153d94b41a80b 100644 (file)
@@ -37,6 +37,11 @@ void Texturing::set_attachment(unsigned attch, const Texture *tex)
                bind_attachment(attch);
 }
 
+const Texture *Texturing::get_attached_texture(unsigned i) const
+{
+       return i<attachments.size() ? attachments[i] : 0;
+}
+
 void Texturing::bind_attachment(unsigned i) const
 {
        if(const Texture *tex = attachments[i])