|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Which geometry a Sprite draws — the rule, apart from the frame. More...
#include "../../ecs/components/Sprite.hpp"Go to the source code of this file.
Classes | |
| struct | esengine::SpriteDrawChoice |
Namespaces | |
| namespace | esengine |
Functions | |
| constexpr SpriteDrawChoice | esengine::resolveSpriteDraw (ecs::SpriteDrawMode mode, bool hasTileSize, bool hasSliceBorder) |
| Resolve the geometry from the author's mode and what the data offers. | |
Which geometry a Sprite draws — the rule, apart from the frame.
Pure so it can be held to cases directly: a frame shows that SOME geometry was emitted, never which rule chose it.
Definition in file SpriteDrawResolve.hpp.