Graphics: Add TextureLoader

This commit is contained in:
SirLynix
2022-09-07 13:31:21 +02:00
parent 47cb878f9d
commit fbdc1faf8c
8 changed files with 202 additions and 23 deletions

View File

@@ -15,18 +15,6 @@ namespace Nz
m_passes[passIndex] = std::move(pass);
}
inline void Material::AddPass(std::string passName, std::shared_ptr<MaterialPass> pass)
{
auto& registry = Graphics::Instance()->GetMaterialPassRegistry();
return AddPass(registry.GetPassIndex(passName), std::move(pass));
}
inline const std::shared_ptr<MaterialPass>& Material::FindPass(const std::string& passName) const
{
auto& registry = Graphics::Instance()->GetMaterialPassRegistry();
return GetPass(registry.GetPassIndex(passName));
}
template<typename F>
void Material::ForEachPass(F&& callback)
{
@@ -63,12 +51,6 @@ namespace Nz
m_passes[passIndex].reset();
}
inline void Material::RemovePass(const std::string& passName)
{
auto& registry = Graphics::Instance()->GetMaterialPassRegistry();
return RemovePass(registry.GetPassIndex(passName));
}
}
#include <Nazara/Graphics/DebugOff.hpp>