Files
NazaraEngine/include/Nazara/Graphics/ParticleDeclaration.inl
Lynix 5b39e8bac6 Graphics/ParticleDeclaration: Fix particle declarations leak
Former-commit-id: b0cd7f410ca94bd969943443b81e908b70c5e2d3 [formerly 066c3331d6c18f77900fe08c9c0bc82330a566a0] [formerly 39c3b995afdcaea91ed8f94a9aa7f137844e6c67 [formerly 9559f4534bf9e0fe6c6b3c9fe271d85fb1194416]]
Former-commit-id: 42083171720cf53f79311ea901f445f3483b6e45 [formerly 31b97171d51bd90ceb5247436c979ca3cb53386b]
Former-commit-id: f2f49e08f018f69523ca769530336e30668e128e
2016-08-14 17:57:53 +02:00

21 lines
553 B
C++

// Copyright (C) 2016 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
#include <memory>
#include <Nazara/Utility/Debug.hpp>
namespace Nz
{
template<typename... Args>
ParticleDeclarationRef ParticleDeclaration::New(Args&&... args)
{
std::unique_ptr<ParticleDeclaration> object(new ParticleDeclaration(std::forward<Args>(args)...));
object->SetPersistent(false);
return object.release();
}
}
#include <Nazara/Utility/DebugOff.hpp>