]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/unlitmaterial.h
Remove some deprecated stuff that's getting in the way
[libs/gl.git] / source / materials / unlitmaterial.h
index b8b28835b7ce18f031c79a4cb0a877670555b2ac..dc027f1f6a79ccc7a400aa5311e1081e056729da 100644 (file)
@@ -26,20 +26,23 @@ public:
 
 private:
        const Texture *texture;
-       Color tint;
+       Color color;
        bool vertex_color;
 
+       static const Tag texture_tags[];
+
 public:
        UnlitMaterial();
 
 protected:
-       virtual std::string create_program_source() const;
+       virtual void fill_program_info(std::string &, std::map<std::string, int> &) const;
 
 public:
-       virtual void attach_textures_to(Texturing &, ProgramData &) const;
+       virtual const Tag *get_texture_tags() const { return texture_tags; }
+       virtual const Texture *get_texture(Tag) const;
 
        void set_texture(const Texture *);
-       void set_tint(const Color &);
+       void set_color(const Color &);
        void set_vertex_color(bool);
 };