Graphics: Add Renderable class

WIP


Former-commit-id: b9ea2a443cf2e5f8b90360e1f47466b0c3ce69fa
This commit is contained in:
Lynix
2015-05-26 00:08:24 +02:00
parent 41afb3a3a1
commit 3ee981867e
3 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// 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
void NzRenderable::EnsureBoundingVolumeUpdated() const
{
if (!m_boundingVolumeUpdated)
UpdateBoundingVolume();
}
void NzRenderable::InvalidateBoundingVolume()
{
m_boundingVolumeUpdated = false;
}
void NzRenderable::UpdateBoundingVolume() const
{
MakeBoundingVolume();
m_boundingVolumeUpdated = true;
}