// 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 #include namespace Nz { template void RenderQueue::Clear() { m_data.clear(); } template void RenderQueue::Insert(RenderData&& data) { m_data.emplace_back(std::move(data)); } template template void RenderQueue::Sort(IndexFunc&& func) { std::sort(m_data.begin(), m_data.end(), [&](const RenderData& lhs, const RenderData& rhs) { return func(lhs) < func(rhs); }); } template auto RenderQueue::begin() const -> const_iterator { return &m_data[0]; } template bool RenderQueue::empty() const { return m_data.empty(); } template auto RenderQueue::end() const -> const_iterator { return begin() + m_data.size(); } template auto RenderQueue::size() const -> size_type { return m_data.size(); } } #include