Interface TextureAtlasLayoutPlanner
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Framework contract for a texture-atlas layout algorithm.
Algorithms registered through TextureAtlasLayoutAlgorithmRegistry become
selectable in the native automatic-layout dialog and receive the user's parallel
search flag through plan(List, TextureAtlasLayoutConstraints, boolean).
Implementations that do not support parallel search simply inherit the two-argument
fallback and ignore the flag.
-
Method Summary
Modifier and TypeMethodDescriptionplan(List<TextureAtlasLayoutItem> items, TextureAtlasLayoutConstraints constraints) default TextureAtlasLayoutPlanplan(List<TextureAtlasLayoutItem> items, TextureAtlasLayoutConstraints constraints, boolean parallel) Parallel variant.
-
Method Details
-
plan
TextureAtlasLayoutPlan plan(List<TextureAtlasLayoutItem> items, TextureAtlasLayoutConstraints constraints) -
plan
default TextureAtlasLayoutPlan plan(List<TextureAtlasLayoutItem> items, TextureAtlasLayoutConstraints constraints, boolean parallel) Parallel variant. The default ignoresparalleland delegates to the serialplan(List, TextureAtlasLayoutConstraints); algorithms that can parallelize their search should override this and preserve result determinism.
-