Graphics: Use memory pools for render elements
This commit is contained in:
16
src/Nazara/Graphics/RenderElementOwner.cpp
Normal file
16
src/Nazara/Graphics/RenderElementOwner.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
// Copyright (C) 2022 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 <Nazara/Graphics/RenderElementOwner.hpp>
|
||||
#include <Nazara/Graphics/RenderElementPool.hpp>
|
||||
#include <Nazara/Graphics/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
RenderElementOwner::~RenderElementOwner()
|
||||
{
|
||||
if (m_pool)
|
||||
m_pool->Free(m_poolIndex);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user