X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Funlitmaterial.h;h=f4f1086d32c68acd4aca0b557dd4d68b03551aa3;hb=8d211effd0c6db66e57f9ffd8ee712eef6069a1c;hp=dc027f1f6a79ccc7a400aa5311e1081e056729da;hpb=5b652353d545a3190ea2d86ba82a87b2e3382a0d;p=libs%2Fgl.git diff --git a/source/materials/unlitmaterial.h b/source/materials/unlitmaterial.h index dc027f1f..f4f1086d 100644 --- a/source/materials/unlitmaterial.h +++ b/source/materials/unlitmaterial.h @@ -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[];