18 lines
424 B
C++
18 lines
424 B
C++
#include "engine/lumix.h"
|
|
#include "renderer/material_manager.h"
|
|
|
|
#include "engine/resource.h"
|
|
#include "renderer/material.h"
|
|
|
|
namespace Lumix
|
|
{
|
|
Resource* MaterialManager::createResource(const Path& path)
|
|
{
|
|
return LUMIX_NEW(m_allocator, Material)(path, *this, m_renderer, m_allocator);
|
|
}
|
|
|
|
void MaterialManager::destroyResource(Resource& resource)
|
|
{
|
|
LUMIX_DELETE(m_allocator, static_cast<Material*>(&resource));
|
|
}
|
|
} |