载入中...
搜索中...
未找到
eve::procgen::TerrainSplatPalette类 参考
Ordered linear RGBA colors used to visualize terrain splat layers. 更多...
#include <TerrainImageAdapter.h>
Public 成员函数 | |
| Result< int > | addColor (float red, float green, float blue, float alpha=1) |
| Append one finite normalized layer color and return the palette size. | |
| int | getColorCount () const noexcept |
| Return the number of layer colors. | |
友元 | |
| EVENGINE_API_DOMAINS Result< int > | bakeTerrainSplatAlbedo (image::ImageData &, const TerrainSplatmap &, const TerrainSplatPalette &) |
| Blend every splat layer color into a borrowed ImageData atomically. | |
详细描述
Ordered linear RGBA colors used to visualize terrain splat layers.
在文件 TerrainImageAdapter.h 第 59 行定义.
成员函数说明
◆ addColor()
| Result< int > eve::procgen::TerrainSplatPalette::addColor | ( | float | red, |
| float | green, | ||
| float | blue, | ||
| float | alpha = 1 |
||
| ) |
Append one finite normalized layer color and return the palette size.
在文件 TerrainImageAdapter.cpp 第 132 行定义.
引用了 eve::procgen::raster_detail::invalid(), eve::Result< T >::success(), valid , 以及 value.
◆ getColorCount()
|
inlinenoexcept |
Return the number of layer colors.
在文件 TerrainImageAdapter.h 第 64 行定义.
友元及相关函数文档
◆ bakeTerrainSplatAlbedo
|
friend |
Blend every splat layer color into a borrowed ImageData atomically.
- 返回
- Written pixel count or InvalidArgument; output is unchanged on failure. @ownership No image, splatmap or palette storage is retained. Caller serializes mutable output access.
在文件 TerrainImageAdapter.cpp 第 282 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/heightmap/TerrainImageAdapter.h
- src/modules/procgen/heightmap/TerrainImageAdapter.cpp