Struct Engine::Opacity¶
Per-entity transparency multiplier applied at render time. More...
#include <Opacity.hpp>
Public Attributes¶
| Type | Name |
|---|---|
| float | alpha = 1.0fTransparency multiplier in [0.0, 1.0]. |
| bool | inheritToChildren = trueWhen true (default), this entity's opacity multiplies into descendants. |
Public Static Functions¶
| Type | Name |
|---|---|
| Opacity | Create (float alpha=1.0f, bool inheritToChildren=true) |
Detailed Description¶
A value of 1.0 is fully opaque, 0.0 fully transparent. Sprite, shape and text renderers multiply their base alpha by the effective alpha: the entity's own value times every ancestor's value whose inheritToChildren is set. Inheritance is on by default; unchecking it keeps the entity's own opacity local to itself (descendants ignore that node only).
Public Attributes Documentation¶
variable alpha¶
Transparency multiplier in [0.0, 1.0].
variable inheritToChildren¶
When true (default), this entity's opacity multiplies into descendants.
Public Static Functions Documentation¶
function Create¶
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Components/Opacity.hpp