mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
498 B
C++
26 lines
498 B
C++
4 years ago
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_HEIGHFIELDSHAPE_H
|
||
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_HEIGHFIELDSHAPE_H
|
||
|
|
||
|
#include <cstddef>
|
||
|
#include <variant>
|
||
|
|
||
|
namespace DetourNavigator
|
||
|
{
|
||
|
struct HeightfieldPlane
|
||
|
{
|
||
|
float mHeight;
|
||
|
};
|
||
|
|
||
|
struct HeightfieldSurface
|
||
|
{
|
||
|
const float* mHeights;
|
||
|
std::size_t mSize;
|
||
|
float mMinHeight;
|
||
|
float mMaxHeight;
|
||
|
};
|
||
|
|
||
|
using HeightfieldShape = std::variant<HeightfieldPlane, HeightfieldSurface>;
|
||
|
}
|
||
|
|
||
|
#endif
|