1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00
OpenMW/components/sceneutil/pathgridutil.hpp

26 lines
589 B
C++
Raw Normal View History

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