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

A stencil cut from this entity's own Sprite. More...

#include <SpriteMask.hpp>

Public Attributes

f32 alphaCutoff {0.0f}
 Above 0, cut to the sprite's SHAPE — fragments below this alpha do not mask.
bool limitRange {false}
 Stop reaching at a stated layer/order instead of running to the end of the frame.
i32 rangeEndLayer {0}
 Last sorting layer this mask reaches.
i32 rangeEndOrder {0}
 Last order WITHIN that layer, inclusive.
bool enabled {true}
 Off is not a mask at all: the sprite goes back to being drawn normally, which is what makes "is this masking?" answerable by looking.

Detailed Description

A stencil cut from this entity's own Sprite.

Definition at line 31 of file SpriteMask.hpp.

Member Data Documentation

◆ alphaCutoff

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

Above 0, cut to the sprite's SHAPE — fragments below this alpha do not mask.

Definition at line 35 of file SpriteMask.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ enabled

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

Off is not a mask at all: the sprite goes back to being drawn normally, which is what makes "is this masking?" answerable by looking.

Definition at line 54 of file SpriteMask.hpp.

Referenced by esengine::SpritePlugin::collect(), and EMSCRIPTEN_BINDINGS().

◆ limitRange

bool esengine::ecs::SpriteMask::limitRange {false}

Stop reaching at a stated layer/order instead of running to the end of the frame.

Definition at line 39 of file SpriteMask.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ rangeEndLayer

i32 esengine::ecs::SpriteMask::rangeEndLayer {0}

Last sorting layer this mask reaches.

Definition at line 44 of file SpriteMask.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ rangeEndOrder

i32 esengine::ecs::SpriteMask::rangeEndOrder {0}

Last order WITHIN that layer, inclusive.

Definition at line 49 of file SpriteMask.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/SpriteMask.hpp