1 package com.badlogic.gdx.graphics.g3d.utils;
3 import com.badlogic.gdx.graphics.Camera;
4 import com.badlogic.gdx.graphics.g3d.Renderable;
5 import com.badlogic.gdx.utils.Array;
8 * Responsible for sorting {@link Renderable} lists by whatever criteria (material, distance to camera, etc.)
12 public interface RenderableSorter {
14 * Sorst the array of {@link Renderable} instances based on some criteria,
15 * e.g. material, distance to camera etc.
16 * @param renderables the array of renderables to be sorted
18 public void sort(Camera camera, Array<Renderable> renderables);