PrimeWorldEditor/Scene/CRootNode.h

28 lines
699 B
C
Raw Normal View History

#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-28 18:37:22 +00:00
inline void RayAABoxIntersectTest(CRayCollisionTester&, const SViewInfo&) {}
inline SRayIntersection RayNodeIntersectTest(const CRay &, u32, const SViewInfo&) {
return SRayIntersection(false, 0.f, nullptr, 0);
}
inline void DrawSelection() {}
};
#endif // CROOTNODE_H