2015-07-26 21:39:49 +00:00
|
|
|
#ifndef CROOTNODE_H
|
|
|
|
#define CROOTNODE_H
|
|
|
|
|
|
|
|
#include "CSceneNode.h"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
// CRootNode's main purpose is to manage groups of other nodes as its children.
|
|
|
|
class CRootNode : public CSceneNode
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit CRootNode(CSceneManager *pScene, CSceneNode *pParent = 0) : CSceneNode(pScene, pParent) {}
|
|
|
|
~CRootNode() {}
|
|
|
|
|
|
|
|
inline ENodeType NodeType() {
|
|
|
|
return eRootNode;
|
|
|
|
}
|
|
|
|
|
2015-11-25 21:37:34 +00:00
|
|
|
inline void AddToRenderer(CRenderer *, const SViewInfo&) {}
|
2015-11-26 10:42:42 +00:00
|
|
|
inline void Draw(ERenderOptions, const SViewInfo&) {}
|
|
|
|
inline void DrawAsset(ERenderOptions, u32, const SViewInfo&) {}
|
2015-07-26 21:39:49 +00:00
|
|
|
inline void RayAABoxIntersectTest(CRayCollisionTester &) {}
|
|
|
|
|
2015-11-25 21:37:34 +00:00
|
|
|
inline SRayIntersection RayNodeIntersectTest(const CRay &, u32, const SViewInfo&) {
|
2015-07-26 21:39:49 +00:00
|
|
|
return SRayIntersection(false, 0.f, nullptr, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void DrawSelection() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CROOTNODE_H
|