]> git.tdb.fi Git - libs/gl.git/blobdiff - source/basicmaterial.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / basicmaterial.h
index 5fca56a0300127e54fd7f0b06be52bb4e97586e1..95259f476b233198856c49a42391049f54f6b0b5 100644 (file)
@@ -9,7 +9,7 @@ namespace GL {
 class BasicMaterial: public Material
 {
 public:
-       class Loader: public DataFile::DerivedObjectLoader<BasicMaterial, Material::LoaderBase<BasicMaterial> >
+       class Loader: public DataFile::DerivedObjectLoader<BasicMaterial, Material::PropertyLoader<BasicMaterial> >
        {
        private:
                static ActionMap shared_actions;
@@ -29,6 +29,7 @@ private:
        Property<Vector3> normal;
        Property<Color> emission;
        Property<float> reflectivity;
+       bool receive_shadows;
 
 public:
        BasicMaterial();
@@ -37,7 +38,7 @@ protected:
        virtual std::string create_program_source() const;
 
 public:
-       void attach_textures_to(Texturing &, ProgramData &) const;
+       virtual void attach_textures_to(Texturing &, ProgramData &) const;
 
        void set_diffuse(const Color &);
        void set_diffuse_map(const Texture *);
@@ -50,6 +51,7 @@ public:
        void set_shininess_map(const Texture *);
        void set_reflectivity(float);
        void set_reflectivity_map(const Texture *);
+       void set_receive_shadows(bool);
 };
 
 } // namespace GL