mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
9a5ec5fd03
To reduce size of RecastMesh and therefore cache size.
26 lines
498 B
C++
26 lines
498 B
C++
#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
|