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

#include <UIMask.hpp>

Public Attributes

bool enabled {true}
MaskMode mode {MaskMode::Scissor}
f32 alphaCutoff {0.0f}

Detailed Description

Definition at line 17 of file UIMask.hpp.

Member Data Documentation

◆ alphaCutoff

f32 esengine::ecs::UIMask::alphaCutoff {0.0f}

Stencil mode only: clip to the SHAPE this node draws rather than its box. 0 (default) keeps the box, as a plain rounded panel wants; above 0, fragments whose alpha is below the cutoff write no stencil, so a circular sprite masks a circle, as an avatar frame needs.

Definition at line 29 of file UIMask.hpp.

Referenced by uimaskApplyJS(), and uimaskToJS().

◆ enabled

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

Definition at line 19 of file UIMask.hpp.

Referenced by uimaskApplyJS(), and uimaskToJS().

◆ mode

MaskMode esengine::ecs::UIMask::mode {MaskMode::Scissor}

Definition at line 21 of file UIMask.hpp.

Referenced by uimaskApplyJS(), and uimaskToJS().


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