Package gaia.cu9.ari.gaiaorbit.util.gdx
Class DefaultIntRenderableSorter
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.util.gdx.DefaultIntRenderableSorter
-
- All Implemented Interfaces:
IntRenderableSorter
,java.util.Comparator<IntRenderable>
public class DefaultIntRenderableSorter extends java.lang.Object implements IntRenderableSorter, java.util.Comparator<IntRenderable>
-
-
Constructor Summary
Constructors Constructor Description DefaultIntRenderableSorter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(IntRenderable o1, IntRenderable o2)
void
sort(com.badlogic.gdx.graphics.Camera camera, com.badlogic.gdx.utils.Array<IntRenderable> renderables)
Sorts the array ofIntRenderable
instances based on some criteria, e.g.
-
-
-
Method Detail
-
sort
public void sort(com.badlogic.gdx.graphics.Camera camera, com.badlogic.gdx.utils.Array<IntRenderable> renderables)
Description copied from interface:IntRenderableSorter
Sorts the array ofIntRenderable
instances based on some criteria, e.g. material, distance to camera etc.- Specified by:
sort
in interfaceIntRenderableSorter
renderables
- the array of renderables to be sorted
-
compare
public int compare(IntRenderable o1, IntRenderable o2)
- Specified by:
compare
in interfacejava.util.Comparator<IntRenderable>
-
-