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

Fades an entity and everything under it, the way UINode.opacity fades a UI subtree. More...

#include <GroupOpacity.hpp>

Public Attributes

f32 opacity {1.0f}
bool enabled {true}

Detailed Description

Fades an entity and everything under it, the way UINode.opacity fades a UI subtree.

The opacities multiply down the hierarchy into each descendant's own alpha. It is not a composited layer: where children overlap they show through one another mid-fade, which is the cheap behaviour every group alpha makes. It reaches the world content that draws a colour — sprites, text, shapes, trails; a UI node answers to its own opacity instead.

Definition at line 18 of file GroupOpacity.hpp.

Member Data Documentation

◆ enabled

bool esengine::ecs::GroupOpacity::enabled {true}

Definition at line 23 of file GroupOpacity.hpp.

Referenced by EMSCRIPTEN_BINDINGS(), and esengine::ecs::GroupOpacityLookup::of().

◆ opacity

f32 esengine::ecs::GroupOpacity::opacity {1.0f}

Definition at line 20 of file GroupOpacity.hpp.

Referenced by EMSCRIPTEN_BINDINGS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/GroupOpacity.hpp