Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::GroupOpacityLookup Class Reference

The opacity a draw inherits from the GroupOpacity above it. More...

#include <GroupOpacityLookup.hpp>

Public Member Functions

 GroupOpacityLookup (Registry &registry)
bool active () const
f32 of (Entity entity) const
 1 when no enabled group encloses entity (itself included).

Detailed Description

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.

Constructor & Destructor Documentation

◆ GroupOpacityLookup()

esengine::ecs::GroupOpacityLookup::GroupOpacityLookup ( Registry & registry)
inlineexplicit

Definition at line 21 of file GroupOpacityLookup.hpp.

References esengine::ecs::Registry::view().

Member Function Documentation

◆ active()

bool esengine::ecs::GroupOpacityLookup::active ( ) const
inline

Definition at line 26 of file GroupOpacityLookup.hpp.

◆ of()

f32 esengine::ecs::GroupOpacityLookup::of ( Entity entity) const
inline

The documentation for this class was generated from the following file: