OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pathgridutil.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_PATHGRIDUTIL_H
2 #define OPENMW_COMPONENTS_PATHGRIDUTIL_H
3 
4 #include <osg/ref_ptr>
5 #include <osg/Geometry>
6 
7 namespace ESM
8 {
9  struct Pathgrid;
10 }
11 
12 namespace SceneUtil
13 {
14  const float DiamondHalfHeight = 40.f;
15  const float DiamondHalfWidth = 16.f;
16 
17  osg::ref_ptr<osg::Geometry> createPathgridGeometry(const ESM::Pathgrid& pathgrid);
18 
19  osg::ref_ptr<osg::Geometry> createPathgridSelectedWireframe(const ESM::Pathgrid& pathgrid,
20  const std::vector<unsigned short>& selected);
21 
22  unsigned short getPathgridNode(unsigned short vertexIndex);
23 }
24 
25 #endif
const float DiamondHalfHeight
Definition: pathgridutil.hpp:14
unsigned short getPathgridNode(unsigned short vertexIndex)
Definition: pathgridutil.cpp:229
osg::ref_ptr< osg::Geometry > createPathgridGeometry(const ESM::Pathgrid &pathgrid)
Definition: pathgridutil.cpp:77
Definition: loadpgrd.hpp:16
const float DiamondHalfWidth
Definition: pathgridutil.hpp:15
osg::ref_ptr< osg::Geometry > createPathgridSelectedWireframe(const ESM::Pathgrid &pathgrid, const std::vector< unsigned short > &selected)
Definition: pathgridutil.cpp:177