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

Owning ordered GTS layer-height rasters and their alpha-channel transforms. 更多...

#include <TerrainSplatmap.h>

类

struct  Impl
 

Public 成员函数

 GtsHeightBlendSet ()
 Gts height blend set.
 
 ~GtsHeightBlendSet ()
 Gts height blend set.
 
 GtsHeightBlendSet (GtsHeightBlendSet &&) noexcept
 Gts height blend set.
 
GtsHeightBlendSet & operator= (GtsHeightBlendSet &&) noexcept
 Operator =.
 
 GtsHeightBlendSet (const GtsHeightBlendSet &)=delete
 
GtsHeightBlendSet & operator= (const GtsHeightBlendSet &)=delete
 
Result< int > addLayer (const Heightmap &height, float contrast=1, float brightness=1, float increase=0)
 Copy one raw normalized height raster and append its contrast, brightness and increase transform.
 
int getLayerCount () const noexcept
 Return the number of owned height layers.
 

友元

EVENGINE_API_DOMAINS Result< int > applyGtsHeightBlend (TerrainSplatmap &, const TerrainSplatmap &, const GtsHeightBlendSet &, float)
 Recompute all splat weights using the GTS texture-height blending equation.
 

详细描述

Owning ordered GTS layer-height rasters and their alpha-channel transforms.

在文件 TerrainSplatmap.h 第 88 行定义.

构造及析构函数说明

◆ GtsHeightBlendSet() [1/3]

eve::procgen::GtsHeightBlendSet::GtsHeightBlendSet ( )

Gts height blend set.

在文件 TerrainSplatmap.cpp 第 45 行定义.

◆ ~GtsHeightBlendSet()

eve::procgen::GtsHeightBlendSet::~GtsHeightBlendSet ( )
default

Gts height blend set.

◆ GtsHeightBlendSet() [2/3]

eve::procgen::GtsHeightBlendSet::GtsHeightBlendSet ( GtsHeightBlendSet &&  )
defaultnoexcept

Gts height blend set.

◆ GtsHeightBlendSet() [3/3]

eve::procgen::GtsHeightBlendSet::GtsHeightBlendSet ( const GtsHeightBlendSet &  )
delete

成员函数说明

◆ addLayer()

Result< int > eve::procgen::GtsHeightBlendSet::addLayer ( const Heightmap &  height,
float  contrast = 1,
float  brightness = 1,
float  increase = 0 
)

Copy one raw normalized height raster and append its contrast, brightness and increase transform.

在文件 TerrainSplatmap.cpp 第 49 行定义.

引用了 contrast, eve::Diagnostic::error(), eve::Result< T >::failure(), height, eve::InvalidArgument, eve::Result< T >::success() , 以及 eve::procgen::raster_detail::validRaster().

◆ getLayerCount()

int eve::procgen::GtsHeightBlendSet::getLayerCount ( ) const
noexcept

Return the number of owned height layers.

在文件 TerrainSplatmap.cpp 第 61 行定义.

◆ operator=() [1/2]

GtsHeightBlendSet & eve::procgen::GtsHeightBlendSet::operator= ( const GtsHeightBlendSet &  )
delete

◆ operator=() [2/2]

GtsHeightBlendSet & eve::procgen::GtsHeightBlendSet::operator= ( GtsHeightBlendSet &&  )
defaultnoexcept

Operator =.

友元及相关函数文档

◆ applyGtsHeightBlend

EVENGINE_API_DOMAINS Result< int > applyGtsHeightBlend ( TerrainSplatmap &  ,
const TerrainSplatmap &  ,
const GtsHeightBlendSet &  ,
float   
)
friend

Recompute all splat weights using the GTS texture-height blending equation.

返回
Changed texel count or InvalidArgument; output remains unchanged on failure.

在文件 TerrainSplatmap.cpp 第 239 行定义.


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