Class SceneRenderableSorter
java.lang.Object
gaiasky.render.gdx.model.gltf.scene3d.scene.SceneRenderableSorter
- All Implemented Interfaces:
IntRenderableSorter, Comparator<IntRenderable>
public class SceneRenderableSorter
extends Object
implements IntRenderableSorter, Comparator<IntRenderable>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(IntRenderable o1, IntRenderable o2) voidsort(com.badlogic.gdx.graphics.Camera camera, com.badlogic.gdx.utils.Array<IntRenderable> renderables) Sorts the array ofIntRenderableinstances based on some criteria, e.g.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SceneRenderableSorter
public SceneRenderableSorter()
-
-
Method Details
-
sort
public void sort(com.badlogic.gdx.graphics.Camera camera, com.badlogic.gdx.utils.Array<IntRenderable> renderables) Description copied from interface:IntRenderableSorterSorts the array ofIntRenderableinstances based on some criteria, e.g. material, distance to camera etc.- Specified by:
sortin interfaceIntRenderableSorter- Parameters:
renderables- the array of renderables to be sorted
-
compare
- Specified by:
comparein interfaceComparator<IntRenderable>
-