Files
NazaraEngine/include/Nazara/Graphics/Renderable.inl
Gawaboumga d4b4e3f565 Various fixes
Former-commit-id: b375cb70e49effc001fb781028bd8b7d07044941 [formerly cbdadfbabd56bed8ffadbf3cbd7175e95908452f]
Former-commit-id: 224bc14061ba65eff9b9d779104c5df95e63e905
2016-07-28 19:22:41 +02:00

36 lines
704 B
C++

// Copyright (C) 2015 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
namespace Nz
{
/*!
* \brief Ensures that the bounding volume is up to date
*/
inline void Renderable::EnsureBoundingVolumeUpdated() const
{
if (!m_boundingVolumeUpdated)
UpdateBoundingVolume();
}
/*!
* \brief Invalidates the bounding volume
*/
inline void Renderable::InvalidateBoundingVolume()
{
m_boundingVolumeUpdated = false;
}
/*!
* \brief Updates the bounding volume
*/
inline void Renderable::UpdateBoundingVolume() const
{
MakeBoundingVolume();
m_boundingVolumeUpdated = true;
}
}