// Copyright (C) 2023 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 #include namespace Nz { template template RenderElementOwner RenderElementPool::Allocate(Args&&... args) { std::size_t poolIndex; T* element = m_pool.Allocate(poolIndex, std::forward(args)...); return RenderElementOwner(this, poolIndex, element); } template RenderElementPool::RenderElementPool() : m_pool(4096) //< TODO: Allow to adjust pool count { } template void RenderElementPool::Clear() { m_pool.Clear(); } template void RenderElementPool::Free(std::size_t index) { m_pool.Free(index); } } #include