public class GuiComparator extends java.lang.Object implements GeometryComparator
GuiComparator sorts geometries back-to-front based
on their Z position.| Constructor and Description |
|---|
GuiComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Geometry o1,
Geometry o2) |
void |
setCamera(Camera cam)
Set the camera to use for sorting.
|
public int compare(Geometry o1, Geometry o2)
compare in interface java.util.Comparator<Geometry>public void setCamera(Camera cam)
GeometryComparatorsetCamera in interface GeometryComparatorcam - The camera to use for sorting