PrimeWorldEditor/src/Core/CRayCollisionTester.h

32 lines
789 B
C
Raw Normal View History

#ifndef CRAYCOLLISIONHELPER_H
#define CRAYCOLLISIONHELPER_H
#include "SRayIntersection.h"
#include "Core/Render/SViewInfo.h"
#include "Core/Resource/Model/CBasicModel.h"
#include <Common/BasicTypes.h>
#include <Common/Math/CAABox.h>
#include <Common/Math/CRay.h>
#include <Common/Math/CVector3f.h>
#include <list>
class CSceneNode;
class CRayCollisionTester
{
CRay mRay;
std::list<SRayIntersection> mBoxIntersectList;
public:
2016-03-27 19:09:38 +00:00
CRayCollisionTester(const CRay& rkRay);
~CRayCollisionTester();
2016-03-27 19:09:38 +00:00
const CRay& Ray() const { return mRay; }
void AddNode(CSceneNode *pNode, uint32 AssetIndex, float Distance);
void AddNodeModel(CSceneNode *pNode, CBasicModel *pModel);
2016-03-27 19:09:38 +00:00
SRayIntersection TestNodes(const SViewInfo& rkViewInfo);
};
#endif // CRAYCOLLISIONHELPER_H