]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/effect.h
Use a sorted vector in place of set for small data
[libs/gl.git] / source / effects / effect.h
index eadb4dc845984a3d8e04d83e93d6a819df81bdf0..0d794a3a2d9b6b264b17e880cf0a02c95d8218d7 100644 (file)
@@ -35,7 +35,7 @@ public:
 
 protected:
        Renderable &renderable;
-       std::set<Tag> enabled_methods;
+       std::vector<Tag> enabled_methods;
 
 protected:
        Effect(Renderable &);
@@ -44,6 +44,7 @@ public:
 
        void enable_for_method(Tag);
        void disable_for_method(Tag);
+       bool is_enabled_for_method(Tag) const;
 
        virtual const Matrix *get_matrix() const { return renderable.get_matrix(); }
        virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const { return renderable.get_bounding_sphere(); }