Explicit Lighting-field owner for Pcg's four skybox override controls. @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 <PcgLightingSkyboxPhotoMode.h>
Public 成员函数 | |
| ~PcgLightingSkyboxPhotoMode () override | |
| Pcg lighting skybox 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 four Pcg skybox fields. | |
| PhotoModeFieldAcceptance | acceptsPhotoModeField (const PhotoModeAssignment &assignment) const noexcept override |
| Accept only Pcg skybox Lighting 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-field owner for Pcg's four skybox override controls. @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.
在文件 PcgLightingSkyboxPhotoMode.h 第 15 行定义.
构造及析构函数说明
◆ ~PcgLightingSkyboxPhotoMode()
|
override |
Pcg lighting skybox photo mode.
在文件 PcgLightingSkyboxPhotoMode.cpp 第 9 行定义.
成员函数说明
◆ acceptsPhotoModeField()
|
overridevirtualnoexcept |
Accept only Pcg skybox Lighting assignments.
在文件 PcgLightingSkyboxPhotoMode.cpp 第 25 行定义.
引用了 eve::Accepted, eve::Lighting , 以及 eve::Rejected.
◆ applyPhotoModeField()
|
overridevirtual |
Validate and atomically project one field through DayNight.
在文件 PcgLightingSkyboxPhotoMode.cpp 第 37 行定义.
引用了 code, eve::daynight::PcgSkyboxState::enabled, eve::Diagnostic::error(), eve::daynight::PcgSkyboxState::exposure, eve::Result< T >::failure(), eve::PhotoModeAssignment::field, eve::InvalidArgument, message, eve::daynight::PcgSkyboxState::rotationDegrees, eve::daynight::DayNight::setPcgSkybox(), eve::Result< T >::success(), eve::daynight::PcgSkyboxState::tintBlue, eve::daynight::PcgSkyboxState::tintGreen, eve::daynight::PcgSkyboxState::tintRed, eve::Unsupported, eve::PhotoModeAssignment::value , 以及 value.
◆ setAuthority()
| void eve::daynight::PcgLightingSkyboxPhotoMode::setAuthority | ( | bool | enabled | ) |
Register or revoke ownership of the four Pcg skybox fields.
在文件 PcgLightingSkyboxPhotoMode.cpp 第 18 行定义.
引用了 enabled.
◆ setTarget()
|
noexcept |
Attach a borrowed DayNight target and seed local state from it.
在文件 PcgLightingSkyboxPhotoMode.cpp 第 13 行定义.
引用了 target.
该类的文档由以下文件生成:
- src/modules/daynight/PcgLightingSkyboxPhotoMode.h
- src/modules/daynight/PcgLightingSkyboxPhotoMode.cpp
Public 成员函数 继承自