Explicit Lighting owner for Pcg ambient colors and global light multiplier. @lifetime The borrowed DayNight target must outlive this authority or be detached first. @thread Game thread only; assignments are synchronous and invoke no callbacks or scripts. 更多...
#include <PcgLightingAmbientPhotoMode.h>
Public 成员函数 | |
| ~PcgLightingAmbientPhotoMode () override | |
| Pcg lighting ambient photo mode. | |
| void | setTarget (DayNight *target) noexcept |
| Attach a borrowed DayNight target and seed local state from it. | |
| void | setAuthority (bool enabled) |
| Register or revoke ownership of the five ambient-light fields. | |
| PhotoModeFieldAcceptance | acceptsPhotoModeField (const PhotoModeAssignment &assignment) const noexcept override |
| Accept only Pcg ambient and global-light assignments. | |
| Result< void > | applyPhotoModeField (const PhotoModeAssignment &assignment) override |
| Validate and atomically project one field through DayNight. | |
Public 成员函数 继承自 eve::IPhotoModeFieldSink | |
| virtual | ~IPhotoModeFieldSink ()=default |
| Releases IPhotoModeFieldSink resources. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::IPhotoModeFieldSink | |
| static constexpr const char * | capabilityName ="eve.photo-mode.field" |
详细描述
Explicit Lighting owner for Pcg ambient colors and global light multiplier. @lifetime The borrowed DayNight target must outlive this authority or be detached first. @thread Game thread only; assignments are synchronous and invoke no callbacks or scripts.
在文件 PcgLightingAmbientPhotoMode.h 第 15 行定义.
构造及析构函数说明
◆ ~PcgLightingAmbientPhotoMode()
|
override |
Pcg lighting ambient photo mode.
在文件 PcgLightingAmbientPhotoMode.cpp 第 16 行定义.
引用了 eve::daynight::DayNight::setPcgAmbientLight() , 以及 eve::Result< void >::value().
成员函数说明
◆ acceptsPhotoModeField()
|
overridevirtualnoexcept |
Accept only Pcg ambient and global-light assignments.
在文件 PcgLightingAmbientPhotoMode.cpp 第 44 行定义.
引用了 eve::Accepted, accepts, eve::Lighting , 以及 eve::Rejected.
◆ applyPhotoModeField()
|
overridevirtual |
Validate and atomically project one field through DayNight.
在文件 PcgLightingAmbientPhotoMode.cpp 第 51 行定义.
引用了 accepts, code, eve::daynight::PcgAmbientLightState::equatorBlue, eve::daynight::PcgAmbientLightState::equatorGreen, eve::daynight::PcgAmbientLightState::equatorRed, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::PhotoModeAssignment::field, eve::daynight::PcgAmbientLightState::globalLightMultiplier, eve::daynight::PcgAmbientLightState::groundBlue, eve::daynight::PcgAmbientLightState::groundGreen, eve::daynight::PcgAmbientLightState::groundRed, eve::daynight::PcgAmbientLightState::intensity, eve::InvalidArgument, message, eve::daynight::DayNight::setPcgAmbientLight(), eve::daynight::PcgAmbientLightState::skyBlue, eve::daynight::PcgAmbientLightState::skyGreen, eve::daynight::PcgAmbientLightState::skyRed, eve::Result< T >::success(), eve::Unsupported, eve::PhotoModeAssignment::value , 以及 value.
◆ setAuthority()
| void eve::daynight::PcgLightingAmbientPhotoMode::setAuthority | ( | bool | enabled | ) |
Register or revoke ownership of the five ambient-light fields.
在文件 PcgLightingAmbientPhotoMode.cpp 第 31 行定义.
引用了 eve::daynight::PcgAmbientLightState::active, enabled, eve::daynight::DayNight::setPcgAmbientLight() , 以及 eve::Result< void >::value().
◆ setTarget()
|
noexcept |
Attach a borrowed DayNight target and seed local state from it.
在文件 PcgLightingAmbientPhotoMode.cpp 第 23 行定义.
引用了 target.
该类的文档由以下文件生成:
- src/modules/daynight/PcgLightingAmbientPhotoMode.h
- src/modules/daynight/PcgLightingAmbientPhotoMode.cpp
Public 成员函数 继承自