General: Remove unnecessary inline specifiers and add overrides

This commit is contained in:
Lioncash
2020-06-11 14:10:22 -04:00
parent 2d76c5865a
commit 012da6fb6d
107 changed files with 885 additions and 1055 deletions

View File

@@ -2,29 +2,28 @@
#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(CScene *pScene, uint32 NodeID, CSceneNode *pParent = 0)
explicit CRootNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent = nullptr)
: CSceneNode(pScene, NodeID, pParent) {}
~CRootNode() {}
~CRootNode() = default;
ENodeType NodeType()
ENodeType NodeType() override
{
return ENodeType::Root;
}
inline void RayAABoxIntersectTest(CRayCollisionTester&, const SViewInfo&) {}
void RayAABoxIntersectTest(CRayCollisionTester&, const SViewInfo&) override {}
inline SRayIntersection RayNodeIntersectTest(const CRay &, uint32, const SViewInfo&)
SRayIntersection RayNodeIntersectTest(const CRay &, uint32, const SViewInfo&) override
{
return SRayIntersection();
}
inline void DrawSelection() {}
void DrawSelection() override {}
};
#endif // CROOTNODE_H