mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 00:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			590 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			590 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_PATHGRIDUTIL_H
 | 
						|
#define OPENMW_COMPONENTS_PATHGRIDUTIL_H
 | 
						|
 | 
						|
#include <osg/Geometry>
 | 
						|
#include <osg/ref_ptr>
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
    struct Pathgrid;
 | 
						|
}
 | 
						|
 | 
						|
namespace SceneUtil
 | 
						|
{
 | 
						|
    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);
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |