Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
SpriteDrawResolve.hpp File Reference

Which geometry a Sprite draws — the rule, apart from the frame. More...

Include dependency graph for SpriteDrawResolve.hpp:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

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.