Former-commit-id: 99602e0fa1e54b6fc8e0087ef89d0e2c74bcfc15 [formerly 83374368c28b83e4916958e7a58d54ec663a9842] Former-commit-id: 603d0c81eada7d1f25058163bbf97672cd96d08c
68 lines
1.8 KiB
C++
68 lines
1.8 KiB
C++
// Copyright (C) 2015 Jérôme Leclercq
|
|
// This file is part of the "Nazara Engine - Physics module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#include <memory>
|
|
#include <Nazara/Physics/Debug.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
template<typename... Args>
|
|
BoxGeomRef BoxGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<BoxGeom> object(new BoxGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
|
|
template<typename... Args>
|
|
CapsuleGeomRef CapsuleGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<CapsuleGeom> object(new CapsuleGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
|
|
template<typename... Args>
|
|
CompoundGeomRef CompoundGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<CompoundGeom> object(new CompoundGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
|
|
template<typename... Args>
|
|
ConeGeomRef ConeGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<ConeGeom> object(new ConeGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
|
|
template<typename... Args>
|
|
ConvexHullGeomRef ConvexHullGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<ConvexHullGeom> object(new ConvexHullGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
|
|
template<typename... Args>
|
|
CylinderGeomRef CylinderGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<CylinderGeom> object(new CylinderGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
|
|
template<typename... Args>
|
|
NullGeomRef NullGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<NullGeom> object(new NullGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
|
|
template<typename... Args>
|
|
SphereGeomRef SphereGeom::New(Args&&... args)
|
|
{
|
|
std::unique_ptr<SphereGeom> object(new SphereGeom(std::forward<Args>(args)...));
|
|
return object.release();
|
|
}
|
|
}
|
|
|
|
#include <Nazara/Physics/DebugOff.hpp>
|