Native runtime state for Pcg BiomeController placement and automatic terrain loading bounds. 更多...
#include <PcgBiomeController.h>
Public 成员函数 | |
| Result< void > | configure (double x, double y, double z, double range, double impostorLoadingRange, PcgBiomeLoadMode mode) |
| Configure the controller and reproduce Pcg's automatic regular/impostor bound calculation. | |
| Result< void > | fitToTerrain (double minX, double originY, double minZ, double sizeX, double sizeY, double sizeZ) |
| Fit to one terrain: use its X/Z center, origin Y, and X half-size as the biome range. | |
| Result< void > | fitToAllTerrains (double minX, double minY, double minZ, double sizeX, double sizeY, double sizeZ) |
| Fit to aggregate terrain bounds: use the full bounds center and X half-size. | |
| PcgTerrainStreamingTier | tierAt (double x, double y, double z) const noexcept |
| Return the representation requested for a world-space point. | |
| const PcgBiomeLoadingBounds & | regularBounds () const noexcept |
| Return the regular terrain loading bounds. | |
| const PcgBiomeLoadingBounds & | impostorBounds () const noexcept |
| Return the impostor terrain loading bounds. | |
| double | range () const noexcept |
| Return the current biome radius. | |
| PcgBiomeLoadMode | loadMode () const noexcept |
| Return the current TerrainLoader mode. | |
详细描述
Native runtime state for Pcg BiomeController placement and automatic terrain loading bounds.
State updates validate a complete candidate before publishing it. The class owns no scene objects and invokes no callbacks; callers use tierAt() to feed their terrain residency scheduler. @thread Game thread only.
在文件 PcgBiomeController.h 第 27 行定义.
成员函数说明
◆ configure()
| Result< void > eve::procgen::PcgBiomeController::configure | ( | double | x, |
| double | y, | ||
| double | z, | ||
| double | range, | ||
| double | impostorLoadingRange, | ||
| PcgBiomeLoadMode | mode | ||
| ) |
◆ fitToAllTerrains()
| Result< void > eve::procgen::PcgBiomeController::fitToAllTerrains | ( | double | minX, |
| double | minY, | ||
| double | minZ, | ||
| double | sizeX, | ||
| double | sizeY, | ||
| double | sizeZ | ||
| ) |
Fit to aggregate terrain bounds: use the full bounds center and X half-size.
在文件 PcgBiomeController.cpp 第 75 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::InvalidArgument.
◆ fitToTerrain()
| Result< void > eve::procgen::PcgBiomeController::fitToTerrain | ( | double | minX, |
| double | originY, | ||
| double | minZ, | ||
| double | sizeX, | ||
| double | sizeY, | ||
| double | sizeZ | ||
| ) |
Fit to one terrain: use its X/Z center, origin Y, and X half-size as the biome range.
在文件 PcgBiomeController.cpp 第 66 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::InvalidArgument.
◆ impostorBounds()
|
inlinenoexcept |
Return the impostor terrain loading bounds.
在文件 PcgBiomeController.h 第 43 行定义.
◆ loadMode()
|
inlinenoexcept |
Return the current TerrainLoader mode.
在文件 PcgBiomeController.h 第 47 行定义.
◆ range()
|
inlinenoexcept |
◆ regularBounds()
|
inlinenoexcept |
Return the regular terrain loading bounds.
在文件 PcgBiomeController.h 第 41 行定义.
◆ tierAt()
|
noexcept |
Return the representation requested for a world-space point.
在文件 PcgBiomeController.cpp 第 84 行定义.
引用了 eve::procgen::Disabled, eve::procgen::Impostor, eve::procgen::Regular, eve::procgen::Unloaded, x, y , 以及 z.
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/PcgBiomeController.h
- src/modules/procgen/heightmap/PcgBiomeController.cpp