|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Which SpriteMask, if any, cuts a sprite — the rule, apart from the frame. More...
#include "./DrawList.hpp"Go to the source code of this file.
Classes | |
| struct | esengine::ResolvedMask |
| A SpriteMask's own place in the frame, how far it reaches, and the ref it stamps. More... | |
Namespaces | |
| namespace | esengine |
Functions | |
| bool | esengine::maskReaches (const ResolvedMask &mask, const DrawList::SortIdentity &where) |
Whether mask still covers a draw sitting at where. | |
| const ResolvedMask * | esengine::nearestReachingMask (const ResolvedMask *masks, u32 count, const DrawList::SortIdentity &where) |
The mask whose ref the stencil still holds at where, or null. | |
Which SpriteMask, if any, cuts a sprite — the rule, apart from the frame.
A mask reaches FORWARD: it cuts what is drawn after it, because that is the order the stencil is written in and the order the author already arranges by layer and order. Pure so it can be held to cases directly; a frame can only show that some mask won, never which one the rule chose.
Definition in file SpriteMaskRange.hpp.