1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00
OpenMW/components/esm/esmterrain.hpp
florent.teppe fffcf52316 land manager cache's key is an ExteriorCellLocation
ESM4::Land is now a ESM::LandData
2023-05-29 11:31:37 +02:00

28 lines
708 B
C++

#ifndef COMPONENTS_ESM_ESMTERRAIN
#define COMPONENTS_ESM_ESMTERRAIN
#include <span>
namespace ESM
{
class LandData
{
public:
virtual ~LandData() = default;
typedef signed char VNML;
virtual std::span<const float> getHeights() const = 0;
virtual std::span<const VNML> getNormals() const = 0;
virtual std::span<const unsigned char> getColors() const = 0;
virtual std::span<const uint16_t> getTextures() const = 0;
virtual float getSize() const = 0;
virtual float getMinHeight() const = 0;
virtual float getMaxHeight() const = 0;
virtual int getLandSize() const = 0;
};
}
#endif // ! COMPNENTS_ESM_ESMTERRAIN