|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The opacity a draw inherits from the GroupOpacity above it. More...
#include <GroupOpacityLookup.hpp>
Public Member Functions | |
| GroupOpacityLookup (Registry ®istry) | |
| bool | active () const |
| f32 | of (Entity entity) const |
1 when no enabled group encloses entity (itself included). | |
The opacity a draw inherits from the GroupOpacity above it.
Made once per collect. Most scenes have no group, and then of is a branch on a flag; with groups it walks the entity's ancestors, so the cost follows the depth of what is drawn, not the size of the scene.
Definition at line 19 of file GroupOpacityLookup.hpp.
|
inlineexplicit |
Definition at line 21 of file GroupOpacityLookup.hpp.
References esengine::ecs::Registry::view().
|
inline |
Definition at line 26 of file GroupOpacityLookup.hpp.
1 when no enabled group encloses entity (itself included).
Definition at line 29 of file GroupOpacityLookup.hpp.
References esengine::ecs::GroupOpacity::enabled, esengine::ecs::Parent::entity, and esengine::INVALID_ENTITY.
Referenced by esengine::SpritePlugin::collect(), esengine::TilemapRenderPlugin::collect(), esengine::getUINodeAlphaInTree(), and esengine::RenderFrame::submitRetainedText().