2020-01-03 20:05:16 +01:00
|
|
|
// Copyright (C) 2002-2012 Nikolaus Gebhardt
|
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
|
|
|
#ifndef __C_EMPTY_SCENE_NODE_H_INCLUDED__
|
|
|
|
#define __C_EMPTY_SCENE_NODE_H_INCLUDED__
|
|
|
|
|
|
|
|
#include "ISceneNode.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace scene
|
|
|
|
{
|
|
|
|
|
|
|
|
class CEmptySceneNode : public ISceneNode
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
//! constructor
|
|
|
|
CEmptySceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id);
|
|
|
|
|
|
|
|
//! returns the axis aligned bounding box of this node
|
2022-10-09 20:57:28 +02:00
|
|
|
const core::aabbox3d<f32>& getBoundingBox() const override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
|
|
|
//! This method is called just before the rendering process of the whole scene.
|
2022-10-09 20:57:28 +02:00
|
|
|
void OnRegisterSceneNode() override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
|
|
|
//! does nothing.
|
2022-10-09 20:57:28 +02:00
|
|
|
void render() override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
|
|
|
//! Returns type of the scene node
|
2022-10-09 20:57:28 +02:00
|
|
|
ESCENE_NODE_TYPE getType() const override { return ESNT_EMPTY; }
|
2020-01-03 20:05:16 +01:00
|
|
|
|
|
|
|
//! Creates a clone of this scene node and its children.
|
2022-10-09 20:57:28 +02:00
|
|
|
ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
core::aabbox3d<f32> Box;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace scene
|
|
|
|
} // end namespace irr
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|