OSDN Git Service

d3eb5727a8639d59ff064a2c05b0a3d2cc35b3ea
[mikumikustudio/libgdx-mikumikustudio.git] / gdx / src / com / badlogic / gdx / graphics / g3d / utils / RenderableSorter.java
1 package com.badlogic.gdx.graphics.g3d.utils;
2
3 import com.badlogic.gdx.graphics.Camera;
4 import com.badlogic.gdx.graphics.g3d.Renderable;
5 import com.badlogic.gdx.utils.Array;
6
7 /**
8  * Responsible for sorting {@link Renderable} lists by whatever criteria (material, distance to camera, etc.)
9  * @author badlogic
10  *
11  */
12 public interface RenderableSorter {
13         /**
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
17          */
18         public void sort(Camera camera, Array<Renderable> renderables);
19 }