public class DefaultRenderableSorter extends java.lang.Object implements RenderableSorter, java.util.Comparator<Renderable>
| Constructor and Description |
|---|
DefaultRenderableSorter() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Renderable o1,
Renderable o2) |
void |
sort(Camera camera,
Array<Renderable> renderables)
Sorts the array of
Renderable instances based on some criteria, e.g. |
public void sort(Camera camera, Array<Renderable> renderables)
RenderableSorterRenderable instances based on some criteria, e.g. material, distance to camera etc.sort in interface RenderableSorterrenderables - the array of renderables to be sortedpublic int compare(Renderable o1, Renderable o2)
compare in interface java.util.Comparator<Renderable>