|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
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. | |
A stencil cut from this entity's own Sprite.
Definition at line 31 of file SpriteMask.hpp.
| 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().
| 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().
| 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().
| i32 esengine::ecs::SpriteMask::rangeEndLayer {0} |
Last sorting layer this mask reaches.
Definition at line 44 of file SpriteMask.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| i32 esengine::ecs::SpriteMask::rangeEndOrder {0} |
Last order WITHIN that layer, inclusive.
Definition at line 49 of file SpriteMask.hpp.
Referenced by EMSCRIPTEN_BINDINGS().