23 lines
No EOL
469 B
C++
23 lines
No EOL
469 B
C++
#pragma once
|
|
|
|
#include "core/resource_manager_base.h"
|
|
|
|
namespace Lumix
|
|
{
|
|
class LUMIX_ENGINE_API MaterialManager : public ResourceManagerBase
|
|
{
|
|
public:
|
|
MaterialManager(IAllocator& allocator)
|
|
: ResourceManagerBase(allocator)
|
|
, m_allocator(allocator)
|
|
{}
|
|
~MaterialManager() {}
|
|
|
|
protected:
|
|
virtual Resource* createResource(const Path& path) override;
|
|
virtual void destroyResource(Resource& resource) override;
|
|
|
|
private:
|
|
IAllocator& m_allocator;
|
|
};
|
|
} |