public class DefaultRenderableSorter extends Object implements RenderableSorter, 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. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic 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 Comparator<Renderable>Copyright © 2021. All rights reserved.