2015-07-26 21:39:49 +00:00
|
|
|
#ifndef CSTATICNODE_H
|
|
|
|
#define CSTATICNODE_H
|
|
|
|
|
|
|
|
#include "CSceneNode.h"
|
|
|
|
#include <Resource/model/CStaticModel.h>
|
|
|
|
|
|
|
|
class CStaticNode : public CSceneNode
|
|
|
|
{
|
|
|
|
CStaticModel *mpModel;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CStaticNode(CSceneManager *pScene, CSceneNode *pParent = 0, CStaticModel *pModel = 0);
|
|
|
|
ENodeType NodeType();
|
2015-11-25 21:37:34 +00:00
|
|
|
void AddToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo);
|
2015-11-27 23:28:35 +00:00
|
|
|
void Draw(ERenderOptions Options, int ComponentIndex, const SViewInfo& ViewInfo);
|
2015-11-26 10:42:42 +00:00
|
|
|
void DrawSelection();
|
2015-11-28 18:37:22 +00:00
|
|
|
void RayAABoxIntersectTest(CRayCollisionTester& Tester, const SViewInfo& ViewInfo);
|
2015-11-25 21:37:34 +00:00
|
|
|
SRayIntersection RayNodeIntersectTest(const CRay &Ray, u32 AssetID, const SViewInfo& ViewInfo);
|
2015-07-26 21:39:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CSTATICNODE_H
|