2021-05-20 15:52:20 +02:00
|
|
|
package engine.object;
|
|
|
|
|
|
|
|
import java.util.Comparator;
|
|
|
|
|
|
|
|
public class SortZ implements Comparator<ObjectGl>
|
|
|
|
{
|
|
|
|
public int compare(ObjectGl a, ObjectGl b)
|
|
|
|
{
|
2021-05-21 21:01:42 +02:00
|
|
|
return (int) (a.getZPos() - b.getZPos());
|
2021-05-20 15:52:20 +02:00
|
|
|
}
|
|
|
|
}
|