namespace Msp {
namespace GL {
+class Sampler;
+
class Material
{
private:
static ActionMap shared_actions;
public:
- GenericLoader(DataFile::Collection * = 0);
+ GenericLoader();
+ GenericLoader(DataFile::Collection &);
~GenericLoader();
- Material *get_material() { Material *m = material; material = 0; return m; }
+ Material *get_object() { Material *m = material; material = 0; return m; }
private:
virtual void init_actions();
virtual const Tag *get_texture_tags() const = 0;
virtual const Texture *get_texture(Tag) const = 0;
- const Sampler *get_sampler() const { return sampler; }
+ virtual const Sampler *get_sampler(Tag) const { return sampler; }
void set_debug_name(const std::string &);