X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturing.h;h=79647f1d95a5b0467a106ddac206066f28267111;hb=b856ccc893a102536048e8d67a6577a31ebdf166;hp=0b3a9751b5f98ebe17f6e55a48fe3d4a998b92c1;hpb=47431fab6676ce5c4cd1ba994da73b1edac2d3e4;p=libs%2Fgl.git diff --git a/source/texturing.h b/source/texturing.h index 0b3a9751..79647f1d 100644 --- a/source/texturing.h +++ b/source/texturing.h @@ -12,7 +12,15 @@ class Texture; class Texturing: public Bindable { private: - std::vector attachments; + struct Attachment + { + unsigned unit; + const Texture *texture; + + Attachment(unsigned, const Texture *); + }; + + std::vector attachments; public: ~Texturing(); @@ -24,12 +32,6 @@ private: public: const Texture *get_attached_texture(unsigned) const; -private: - void bind_attachment(unsigned) const; - - static void unbind_attachment(unsigned); - -public: void bind() const; static void unbind();