// Copyright (C) 2017 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 #pragma once #ifndef NAZARA_MODELINSTANCE_HPP #define NAZARA_MODELINSTANCE_HPP #include #include #include #include namespace Nz { class AbstractBuffer; class MaterialSettings; class NAZARA_GRAPHICS_API ModelInstance { public: ModelInstance(const std::shared_ptr& settings); ModelInstance(const ModelInstance&) = delete; ModelInstance(ModelInstance&&) noexcept = default; ~ModelInstance() = default; inline std::shared_ptr& GetInstanceBuffer(); inline const std::shared_ptr& GetInstanceBuffer() const; inline ShaderBinding& GetShaderBinding(); ModelInstance& operator=(const ModelInstance&) = delete; ModelInstance& operator=(ModelInstance&&) noexcept = default; private: std::shared_ptr m_instanceDataBuffer; ShaderBindingPtr m_shaderBinding; }; } #include #endif // NAZARA_MODELINSTANCE_HPP