namespace Msp {
namespace GL {
+/**
+A material which performs no lighting calculations at all. Useful for HUD
+graphics.
+*/
class UnlitMaterial: public Material
{
public:
static ActionMap shared_actions;
public:
- Loader(UnlitMaterial &);
Loader(UnlitMaterial &, Collection &);
private:
};
private:
- const Texture *texture;
+ const Texture *texture = 0;
Color color;
- bool vertex_color;
+ bool vertex_color = false;
static const Tag texture_tags[];
virtual void fill_program_info(std::string &, std::map<std::string, int> &) const;
public:
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
- DEPRECATED virtual void attach_textures_to(Texturing &, ProgramData &) const;
-#pragma GCC diagnostic pop
-
virtual const Tag *get_texture_tags() const { return texture_tags; }
virtual const Texture *get_texture(Tag) const;