// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_GRAPHICS_MATERIAL_HPP #define NAZARA_GRAPHICS_MATERIAL_HPP #include #include #include namespace Nz { class NAZARA_GRAPHICS_API Material : public Resource { public: Material(); ~Material() = default; inline void AddPass(std::size_t passIndex, std::shared_ptr pass); inline void AddPass(std::string passName, std::shared_ptr pass); inline const std::shared_ptr& FindPass(const std::string& passName) const; inline const std::shared_ptr& GetPass(std::size_t passIndex) const; inline bool HasPass(std::size_t passIndex) const; inline void RemovePass(std::size_t passIndex); inline void RemovePass(const std::string& passName); private: std::vector> m_passes; }; } #include #endif // NAZARA_GRAPHICS_MATERIAL_HPP