-protected:
- void attach_texture_to(const Texture *, Texturing &, ProgramData &, const std::string &) const;
-public:
- virtual void attach_textures_to(Texturing &, ProgramData &) const = 0;
+ /** Returns texture tags used by the material. The returned array is
+ terminated by an empty tag. */
+ virtual const Tag *get_texture_tags() const = 0;
+
+ virtual const Texture *get_texture(Tag) const = 0;
+ virtual const Sampler *get_sampler(Tag) const { return sampler; }
+
+ void set_alpha_cutoff(float a);
+ float get_alpha_cutoff() const { return alpha_cutoff; }
+
+ void set_debug_name(const std::string &);