36 lines
800 B
C++
36 lines
800 B
C++
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
|
// This file is part of the "Nazara Engine - Graphics module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#include <Nazara/Graphics/Light.hpp>
|
|
#include <cassert>
|
|
#include <Nazara/Graphics/Debug.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
inline Light::Light(UInt8 lightType) :
|
|
m_boundingVolume(BoundingVolumef::Null()),
|
|
m_lightType(lightType)
|
|
{
|
|
}
|
|
|
|
inline const BoundingVolumef& Light::GetBoundingVolume() const
|
|
{
|
|
return m_boundingVolume;
|
|
}
|
|
|
|
inline UInt8 Light::GetLightType() const
|
|
{
|
|
return m_lightType;
|
|
}
|
|
|
|
inline void Light::UpdateBoundingVolume(const BoundingVolumef& boundingVolume)
|
|
{
|
|
m_boundingVolume = boundingVolume;
|
|
|
|
OnLightDataInvalided(this);
|
|
}
|
|
}
|
|
|
|
#include <Nazara/Graphics/DebugOff.hpp>
|