OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions | Variables
pathgridutil.cpp File Reference
#include "pathgridutil.hpp"
#include <osg/Geometry>
#include <components/esm/loadland.hpp>
#include <components/esm/loadpgrd.hpp>
Include dependency graph for pathgridutil.cpp:

Namespaces

 SceneUtil
 

Functions

osg::ref_ptr< osg::Geometry > SceneUtil::createPathgridGeometry (const ESM::Pathgrid &pathgrid)
 
osg::ref_ptr< osg::Geometry > SceneUtil::createPathgridSelectedWireframe (const ESM::Pathgrid &pathgrid, const std::vector< unsigned short > &selected)
 
unsigned short SceneUtil::getPathgridNode (unsigned short vertexIndex)
 

Variables

const unsigned short SceneUtil::DiamondVertexCount = 6
 
const unsigned short SceneUtil::DiamondIndexCount = 24
 
const unsigned short SceneUtil::DiamondWireframeIndexCount = 24
 
const unsigned short SceneUtil::DiamondConnectorVertexCount = 4
 
const unsigned short SceneUtil::DiamondTotalVertexCount = DiamondVertexCount + DiamondConnectorVertexCount
 
const float SceneUtil::DiamondWireframeScalar = 1.1f
 
const osg::Vec3f SceneUtil::DiamondPoints [DiamondVertexCount]
 
const unsigned short SceneUtil::DiamondIndices [DiamondIndexCount]
 
const unsigned short SceneUtil::DiamondWireframeIndices [DiamondWireframeIndexCount]
 
const unsigned short SceneUtil::DiamondConnectorVertices [DiamondConnectorVertexCount]
 
const osg::Vec4f SceneUtil::DiamondColors [DiamondVertexCount]
 
const osg::Vec4f SceneUtil::DiamondEdgeColor = osg::Vec4f(0.5f, 1.f, 1.f, 1.f)
 
const osg::Vec4f SceneUtil::DiamondWireColor = osg::Vec4f(0.72f, 0.f, 0.96f, 1.f)
 
const osg::Vec4f SceneUtil::DiamondFocusWireColor = osg::Vec4f(0.91f, 0.66f, 1.f, 1.f)