Files
NazaraEngine/include/Nazara/Graphics/InstancedRenderable.inl
SirLynix 5130a2ff84 Remove Config.hpp options and refactor headers
- Rename Config.hpp to Export.hpp
- Remove Debug.hpp and DebugOff.hpp (not used anymore)
2024-02-19 15:11:34 +01:00

40 lines
791 B
C++

// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Export.hpp
namespace Nz
{
inline InstancedRenderable::InstancedRenderable() :
m_aabb(Boxf::Zero()),
m_renderLayer(0)
{
}
inline const Boxf& InstancedRenderable::GetAABB() const
{
return m_aabb;
}
inline int InstancedRenderable::GetRenderLayer() const
{
return m_renderLayer;
}
inline void InstancedRenderable::UpdateRenderLayer(int renderLayer)
{
if (m_renderLayer != renderLayer)
{
m_renderLayer = renderLayer;
OnElementInvalidated(this);
}
}
inline void InstancedRenderable::UpdateAABB(Boxf aabb)
{
OnAABBUpdate(this, aabb);
m_aabb = aabb;
}
}