]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/unlitmaterial.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / materials / unlitmaterial.h
index dc027f1f6a79ccc7a400aa5311e1081e056729da..f4f1086d32c68acd4aca0b557dd4d68b03551aa3 100644 (file)
@@ -6,6 +6,10 @@
 namespace Msp {
 namespace GL {
 
+/**
+A material which performs no lighting calculations at all.  Useful for HUD
+graphics.
+*/
 class UnlitMaterial: public Material
 {
 public:
@@ -15,7 +19,6 @@ public:
                static ActionMap shared_actions;
 
        public:
-               Loader(UnlitMaterial &);
                Loader(UnlitMaterial &, Collection &);
 
        private:
@@ -25,9 +28,9 @@ public:
        };
 
 private:
-       const Texture *texture;
+       const Texture *texture = 0;
        Color color;
-       bool vertex_color;
+       bool vertex_color = false;
 
        static const Tag texture_tags[];