载入中...
搜索中...
未找到
eve::procgen::PcgTerrainStreamingAuthority类 参考final

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>

类 eve::procgen::PcgTerrainStreamingAuthority 继承关系图:
eve::IPhotoModeFieldSink

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()

eve::procgen::PcgTerrainStreamingAuthority::~PcgTerrainStreamingAuthority ( )
override

Pcg terrain streaming authority.

在文件 PcgTerrainStreaming.cpp 第 9 行定义.

成员函数说明

◆ acceptsPhotoModeField()

PhotoModeFieldAcceptance eve::procgen::PcgTerrainStreamingAuthority::acceptsPhotoModeField ( const PhotoModeAssignment &  assignment) const
overridevirtualnoexcept

Accepts photo mode field.

实现了 eve::IPhotoModeFieldSink.

在文件 PcgTerrainStreaming.cpp 第 30 行定义.

引用了 eve::Accepted, eve::Rejected , 以及 eve::Streaming.

◆ applyPhotoModeField()

Result< void > eve::procgen::PcgTerrainStreamingAuthority::applyPhotoModeField ( const PhotoModeAssignment &  assignment)
overridevirtual

◆ impostorRadiusChunks()

int eve::procgen::PcgTerrainStreamingAuthority::impostorRadiusChunks ( ) const
noexcept

Return the impostor visibility radius after conversion to chunks.

在文件 PcgTerrainStreaming.cpp 第 65 行定义.

引用了 eve::procgen::PcgTerrainStreamingState::impostorRange.

◆ regularRadiusChunks()

int eve::procgen::PcgTerrainStreamingAuthority::regularRadiusChunks ( ) const
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()

const PcgTerrainStreamingState & eve::procgen::PcgTerrainStreamingAuthority::state ( ) const
inlinenoexcept

Return retained world-space range state.

在文件 PcgTerrainStreaming.h 第 35 行定义.

◆ streamAround()

Result< TerrainStreamStats > eve::procgen::PcgTerrainStreamingAuthority::streamAround ( int  worldSampleX,
int  worldSampleY,
int  maxLoads = 0 
)

◆ tierForDistance()

PcgTerrainStreamingTier eve::procgen::PcgTerrainStreamingAuthority::tierForDistance ( float  worldDistance) const
noexcept

Select the runtime representation for a world-space distance.

在文件 PcgTerrainStreaming.cpp 第 83 行定义.

引用了 eve::procgen::Impostor, eve::procgen::Regular , 以及 eve::procgen::Unloaded.


该类的文档由以下文件生成: