Also renamed BoundingBox to BoundingVolume Former-commit-id: 795c70c265ba17f6b96fc30799e89f140c52852b
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
// Copyright (C) 2013 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
|
|
|
|
#include <Nazara/Graphics/SceneRoot.hpp>
|
|
#include <Nazara/Core/Error.hpp>
|
|
#include <Nazara/Graphics/Debug.hpp>
|
|
|
|
NzSceneRoot::NzSceneRoot(NzScene* scene)
|
|
{
|
|
m_scene = scene;
|
|
}
|
|
|
|
NzSceneRoot::~NzSceneRoot() = default;
|
|
|
|
void NzSceneRoot::AddToRenderQueue(NzAbstractRenderQueue* renderQueue) const
|
|
{
|
|
NazaraUnused(renderQueue);
|
|
|
|
NazaraInternalError("SceneNode::AddToRenderQueue() called on SceneRoot");
|
|
}
|
|
|
|
const NzBoundingVolumef& NzSceneRoot::GetBoundingVolume() const
|
|
{
|
|
static NzBoundingVolumef infinite(nzExtend_Infinite);
|
|
return infinite;
|
|
}
|
|
|
|
nzSceneNodeType NzSceneRoot::GetSceneNodeType() const
|
|
{
|
|
return nzSceneNodeType_Root;
|
|
}
|
|
|
|
void NzSceneRoot::Register()
|
|
{
|
|
NazaraInternalError("SceneNode::Register() called on SceneRoot");
|
|
}
|
|
|
|
void NzSceneRoot::Unregister()
|
|
{
|
|
NazaraInternalError("SceneNode::Unregister() called on SceneRoot");
|
|
}
|
|
|
|
bool NzSceneRoot::VisibilityTest(const NzFrustumf& frustum)
|
|
{
|
|
NazaraUnused(frustum);
|
|
|
|
return true; // Toujours visible
|
|
}
|