Explicit PhotoMode owner for a borrowed terrain streaming cache. @lifetime The target cache must outlive this authority or be detached with setTarget(nullptr, scale). @thread Game thread only; callbacks and scripts are not invoked. 更多...
#include <PcgTerrainStreaming.h>
Public 成员函数 | |
| ~PcgTerrainStreamingAuthority () override | |
| Pcg terrain streaming authority. | |
| Result< void > | setTarget (TerrainStreamingCache *cache, float worldUnitsPerSample) |
| Attach a borrowed cache and define the world size of one terrain sample. | |
| void | setAuthority (bool enabled) |
| Register or revoke the unique Streaming-domain PhotoMode authority. | |
| const PcgTerrainStreamingState & | state () const noexcept |
| Return retained world-space range state. | |
| int | regularRadiusChunks () const noexcept |
| Return the regular residency radius after conversion to chunks. | |
| int | impostorRadiusChunks () const noexcept |
| Return the impostor visibility radius after conversion to chunks. | |
| Result< TerrainStreamStats > | streamAround (int worldSampleX, int worldSampleY, int maxLoads=0) |
| Stream full terrain chunks around a world-space sample coordinate. | |
| PcgTerrainStreamingTier | tierForDistance (float worldDistance) const noexcept |
| Select the runtime representation for a world-space distance. | |
| PhotoModeFieldAcceptance | acceptsPhotoModeField (const PhotoModeAssignment &assignment) const noexcept override |
| Accepts photo mode field. | |
| Result< void > | applyPhotoModeField (const PhotoModeAssignment &assignment) override |
| Applies photo mode field. | |
Public 成员函数 继承自 eve::IPhotoModeFieldSink | |
| virtual | ~IPhotoModeFieldSink ()=default |
| Releases IPhotoModeFieldSink resources. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::IPhotoModeFieldSink | |
| static constexpr const char * | capabilityName ="eve.photo-mode.field" |
详细描述
Explicit PhotoMode owner for a borrowed terrain streaming cache. @lifetime The target cache must outlive this authority or be detached with setTarget(nullptr, scale). @thread Game thread only; callbacks and scripts are not invoked.
在文件 PcgTerrainStreaming.h 第 25 行定义.
构造及析构函数说明
◆ ~PcgTerrainStreamingAuthority()
|
override |
Pcg terrain streaming authority.
在文件 PcgTerrainStreaming.cpp 第 9 行定义.
成员函数说明
◆ acceptsPhotoModeField()
|
overridevirtualnoexcept |
Accepts photo mode field.
在文件 PcgTerrainStreaming.cpp 第 30 行定义.
引用了 eve::Accepted, eve::Rejected , 以及 eve::Streaming.
◆ applyPhotoModeField()
|
overridevirtual |
Applies photo mode field.
在文件 PcgTerrainStreaming.cpp 第 36 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::PhotoModeAssignment::field, eve::InvalidArgument, eve::Result< T >::success(), eve::PhotoModeAssignment::value , 以及 value.
◆ impostorRadiusChunks()
|
noexcept |
Return the impostor visibility radius after conversion to chunks.
在文件 PcgTerrainStreaming.cpp 第 65 行定义.
◆ regularRadiusChunks()
|
noexcept |
Return the regular residency radius after conversion to chunks.
在文件 PcgTerrainStreaming.cpp 第 61 行定义.
引用了 eve::procgen::PcgTerrainStreamingState::regularRange.
被这些函数引用 streamAround().
◆ setAuthority()
| void eve::procgen::PcgTerrainStreamingAuthority::setAuthority | ( | bool | enabled | ) |
Register or revoke the unique Streaming-domain PhotoMode authority.
在文件 PcgTerrainStreaming.cpp 第 23 行定义.
引用了 enabled.
◆ setTarget()
| Result< void > eve::procgen::PcgTerrainStreamingAuthority::setTarget | ( | TerrainStreamingCache * | cache, |
| float | worldUnitsPerSample | ||
| ) |
Attach a borrowed cache and define the world size of one terrain sample.
在文件 PcgTerrainStreaming.cpp 第 13 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 eve::procgen::PcgTerrainStreamingState::worldUnitsPerSample.
◆ state()
|
inlinenoexcept |
Return retained world-space range state.
在文件 PcgTerrainStreaming.h 第 35 行定义.
◆ streamAround()
| Result< TerrainStreamStats > eve::procgen::PcgTerrainStreamingAuthority::streamAround | ( | int | worldSampleX, |
| int | worldSampleY, | ||
| int | maxLoads = 0 |
||
| ) |
Stream full terrain chunks around a world-space sample coordinate.
在文件 PcgTerrainStreaming.cpp 第 69 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, regularRadiusChunks(), eve::procgen::TerrainStreamingCache::streamAround(), eve::Result< T >::success() , 以及 eve::Unsupported.
◆ tierForDistance()
|
noexcept |
Select the runtime representation for a world-space distance.
在文件 PcgTerrainStreaming.cpp 第 83 行定义.
引用了 eve::procgen::Impostor, eve::procgen::Regular , 以及 eve::procgen::Unloaded.
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/PcgTerrainStreaming.h
- src/modules/procgen/heightmap/PcgTerrainStreaming.cpp
Public 成员函数 继承自