2014-03-08 23:07:20 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/resource_manager_base.h"
|
|
|
|
|
2014-06-16 21:18:15 +02:00
|
|
|
namespace Lumix
|
2014-03-08 23:07:20 +01:00
|
|
|
{
|
2014-06-25 23:20:33 +02:00
|
|
|
class LUMIX_ENGINE_API MaterialManager : public ResourceManagerBase
|
2014-03-08 23:07:20 +01:00
|
|
|
{
|
|
|
|
public:
|
2014-11-08 02:54:55 +01:00
|
|
|
MaterialManager(IAllocator& allocator)
|
2014-11-09 00:13:11 +01:00
|
|
|
: ResourceManagerBase(allocator)
|
2014-11-08 02:54:55 +01:00
|
|
|
, m_allocator(allocator)
|
|
|
|
{}
|
2014-03-08 23:07:20 +01:00
|
|
|
~MaterialManager() {}
|
|
|
|
|
|
|
|
protected:
|
2014-04-03 23:59:36 +02:00
|
|
|
virtual Resource* createResource(const Path& path) override;
|
|
|
|
virtual void destroyResource(Resource& resource) override;
|
2014-11-08 02:54:55 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
IAllocator& m_allocator;
|
2014-03-08 23:07:20 +01:00
|
|
|
};
|
|
|
|
}
|