Graphics: Add Material and made use of passes (WIP)

This commit is contained in:
Jérôme Leclercq
2021-07-17 21:06:22 +02:00
parent f61deabe92
commit b5045a2c59
11 changed files with 241 additions and 48 deletions

View File

@@ -0,0 +1,20 @@
// Copyright (C) 2021 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Graphics/Material.hpp>
#include <Nazara/Graphics/Debug.hpp>
namespace Nz
{
inline MaterialPass* Material::GetPass(const std::string& name) const
{
auto it = m_passes.find(name);
if (it == m_passes.end())
return nullptr;
return it->second.get();
}
}
#include <Nazara/Graphics/DebugOff.hpp>