2016-05-03 02:09:48 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_PATHGRIDUTIL_H
|
|
|
|
#define OPENMW_COMPONENTS_PATHGRIDUTIL_H
|
|
|
|
|
|
|
|
#include <osg/Geometry>
|
|
|
|
#include <osg/ref_ptr>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
2016-05-10 15:36:25 +00:00
|
|
|
struct Pathgrid;
|
2016-05-03 02:09:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace SceneUtil
|
|
|
|
{
|
2016-05-18 16:17:26 +00:00
|
|
|
const float DiamondHalfHeight = 40.f;
|
|
|
|
const float DiamondHalfWidth = 16.f;
|
|
|
|
|
2016-05-03 20:11:39 +00:00
|
|
|
osg::ref_ptr<osg::Geometry> createPathgridGeometry(const ESM::Pathgrid& pathgrid);
|
2016-05-12 23:35:49 +00:00
|
|
|
|
|
|
|
osg::ref_ptr<osg::Geometry> createPathgridSelectedWireframe(
|
|
|
|
const ESM::Pathgrid& pathgrid, const std::vector<unsigned short>& selected);
|
|
|
|
|
|
|
|
unsigned short getPathgridNode(unsigned short vertexIndex);
|
2016-05-03 02:09:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|