~openmw/openmw/openmw-packaging2

« back to all changes in this revision

Viewing changes to components/sceneutil/pathgridutil.hpp

  • Committer: Scott Howard
  • Date: 2016-09-15 20:56:29 UTC
  • Revision ID: showard@debian.org-20160915205629-3tvfxe47zrb41a91
Cron update. Git hash: 37278b5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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