]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/basicmaterial.h
Remove collection-less constructor overloads from most loaders
[libs/gl.git] / source / materials / basicmaterial.h
index ef7d1526726c48d101e8ca8c232d63b903794521..bf1b0e8cdfb1190b114906abe398e4f1376216e4 100644 (file)
@@ -15,7 +15,6 @@ public:
                static ActionMap shared_actions;
 
        public:
-               Loader(BasicMaterial &);
                Loader(BasicMaterial &, Collection &);
 
        private:
@@ -29,7 +28,8 @@ private:
        Property<Vector3> normal;
        Property<Color> emission;
        Property<float> reflectivity;
-       bool receive_shadows;
+
+       static const Tag texture_tags[];
 
 public:
        BasicMaterial();
@@ -38,7 +38,8 @@ protected:
        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_diffuse(const Color &);
        void set_diffuse_map(const Texture *);
@@ -51,7 +52,6 @@ public:
        void set_shininess_map(const Texture *);
        void set_reflectivity(float);
        void set_reflectivity_map(const Texture *);
-       void set_receive_shadows(bool);
 };
 
 } // namespace GL