namespace Msp {
namespace GL {
+const Tag UnlitMaterial::texture_tags[] =
+{
+ Tag("color_tex"),
+ Tag()
+};
+
UnlitMaterial::UnlitMaterial():
texture(0),
vertex_color(false)
spec_values["use_vertex_color"] = vertex_color;
}
-void UnlitMaterial::attach_textures_to(Texturing &texturing, ProgramData &tex_shdata) const
+const Texture *UnlitMaterial::get_texture(Tag tag) const
{
- attach_texture_to(texture, texturing, tex_shdata, "color_tex");
+ if(tag==texture_tags[0])
+ return texture;
+ else
+ return 0;
}
void UnlitMaterial::set_texture(const Texture *tex)