Former-commit-id: 65c214cb6c146b45b1d87acc08ae08069db81981 [formerly 0802da76594b3201ccaa5c8e769803f80e42d218] [formerly d7bcfa5d1ed177e447381e83486ff3efea2fb967 [formerly 9eb5085f2222eced1a1e0183f57926509aebf449]] Former-commit-id: 23a5b28452c101057761dd497f115e6b86fe0613 [formerly 815e03ee77dd4af22ade6e76343eeb789b3f7078] Former-commit-id: 82ea1338a25422a8bca677e32b01e3fbc86a25e6
21 lines
553 B
C++
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>
|