Graphics: Update Light and Model to new interface

Former-commit-id: 5643f20261524f93a5d080404de5ab0b29151acb
This commit is contained in:
Lynix
2015-06-04 00:18:43 +02:00
parent 349b322834
commit 8c6806eacb
6 changed files with 50 additions and 13 deletions

View File

@@ -2,6 +2,9 @@
// 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/Renderer/Debug.hpp>
inline float NzLight::GetAmbientFactor() const
{
return m_ambientFactor;
@@ -90,3 +93,14 @@ inline void NzLight::SetRadius(float radius)
InvalidateBoundingVolume();
}
template<typename... Args>
NzLightRef NzLight::New(Args&&... args)
{
std::unique_ptr<NzLight> object(new NzLight(std::forward<Args>(args)...));
object->SetPersistent(false);
return object.release();
}
#include <Nazara/Renderer/DebugOff.hpp>