Former-commit-id: f3bfd3eae0d9f355fb6305eae32ea89893e62e5e [formerly 8118af1525528ad5c7a215b97b0ac50c48f2e864] [formerly b217c105316722dd8c94d7be40fbb03d45758bda [formerly f337a26f1ff53bfe3b9afa48a492b01fa2292d74]] Former-commit-id: b5fc8da0e8c13a15e6647202bdaa95d02a2fe971 [formerly 10298d983fb9206a69ae8c6fa8d11f155e040a86] Former-commit-id: 3594d2e8b2846ab1cff07d27c26020ffb140780a
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>
|