Class SortMethod
java.lang.Object
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<RenderState<?,?>>, Collection<RenderState<?, ?>>, List<RenderState<?, ?>>, RandomAccess, SequencedCollection<RenderState<?, ?>>
- Direct Known Subclasses:
CamDepthSort, CamDistSort, DDUUIDSort
public abstract sealed class SortMethod
extends ArrayList<RenderState<?,?>>
permits CamDepthSort, CamDistSort, DDUUIDSort
SortMethod is itself just an arraylist of
RenderState objects.- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(RenderState<?, ?> drawable) booleanbackFaceCulled(Triangle tri) Determines if a triangle should be culled based on back-face culling.abstract voidsort()Methods inherited from class ArrayList
add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Constructor Details
-
SortMethod
public SortMethod()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<RenderState<?,?>> - Specified by:
addin interfaceList<RenderState<?,?>> - Overrides:
addin classArrayList<RenderState<?,?>>
-
backFaceCulled
Determines if a triangle should be culled based on back-face culling.- Parameters:
tri- The triangle to be culled.- Returns:
trueif the triangle should be culled,falseotherwise.
-
sort
public abstract void sort()
-