]> git.tdb.fi Git - libs/gl.git/blobdiff - source/technique.h
Make Tag directly comparable and use it as a key in relevant maps
[libs/gl.git] / source / technique.h
index ef7e9e12e451f942fba1431b175d8bb4bfc0693b..468131f75724cc1a39e6922a0539942991a51db8 100644 (file)
@@ -58,9 +58,11 @@ private:
                TextureSlot(): texture(0) { }
        };
 
+       typedef std::map<Tag, ObjectPass> PassMap;
+
        std::vector<TextureSlot> textures;
        const Texture *main_texture;
-       std::map<unsigned, ObjectPass> passes;
+       PassMap passes;
        ObjectPass *normal_pass;
        const Material *material;