Class LayerComparator

java.lang.Object
com.simsilica.lemur.LayerComparator
All Implemented Interfaces:
GeometryComparator, Comparator<Geometry>

public class LayerComparator extends Object implements GeometryComparator
Sorts geometry based on an included "layer" user data, accumulating an effective layer by walking up the scene graph back to root. Layers are parent-local layers and not global layers. In other words, they only control the sorting of children. This approach is more useful in a GUI environment where UI elements are grouped in scene graph hierarchies already.