载入中...
搜索中...
未找到
Height field decoded from a persisted terrain file. 更多...
#include <TerrainFile.h>
Public 属性 | |
| Heightmap | heightmap |
| float | spacingX = 1.f |
| float | spacingZ = 1.f |
| float | minHeight = 0.f |
| float | maxHeight = 0.f |
| bool | hasSpacing = false |
| std::string | format |
| "evtr" or "evtrn". | |
详细描述
Height field decoded from a persisted terrain file.
spacingX/spacingZ are only meaningful when hasSpacing is true: the EVTRN blob stores metres-per-cell, while an EVTR archive stores no spacing at all and leaves it to the level that references the archive.
在文件 TerrainFile.h 第 38 行定义.
类成员变量说明
◆ format
| std::string eve::procgen::DecodedTerrainFile::format |
"evtr" or "evtrn".
在文件 TerrainFile.h 第 45 行定义.
◆ hasSpacing
| bool eve::procgen::DecodedTerrainFile::hasSpacing = false |
在文件 TerrainFile.h 第 44 行定义.
◆ heightmap
| Heightmap eve::procgen::DecodedTerrainFile::heightmap |
在文件 TerrainFile.h 第 39 行定义.
◆ maxHeight
| float eve::procgen::DecodedTerrainFile::maxHeight = 0.f |
在文件 TerrainFile.h 第 43 行定义.
◆ minHeight
| float eve::procgen::DecodedTerrainFile::minHeight = 0.f |
在文件 TerrainFile.h 第 42 行定义.
◆ spacingX
| float eve::procgen::DecodedTerrainFile::spacingX = 1.f |
在文件 TerrainFile.h 第 40 行定义.
◆ spacingZ
| float eve::procgen::DecodedTerrainFile::spacingZ = 1.f |
在文件 TerrainFile.h 第 41 行定义.
该结构体的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainFile.h