class Texturing: public Bindable<Texturing>
{
private:
- struct Attachment
- {
- const Texture *tex;
-
- Attachment();
- };
-
- std::vector<Attachment> attachments;
+ std::vector<const Texture *> attachments;
public:
~Texturing();
void detach(unsigned);
private:
void set_attachment(unsigned, const Texture *);
+public:
+ const Texture *get_attached_texture(unsigned) const;
+
+private:
void bind_attachment(unsigned) const;
static void unbind_attachment(unsigned);