Class EnvironmentCache
java.lang.Object
gaiasky.util.gdx.shader.attribute.Attributes
gaiasky.util.gdx.shader.Environment
gaiasky.util.gdx.model.gltf.scene3d.utils.EnvironmentCache
- All Implemented Interfaces:
Comparable<Attributes>
,Iterable<Attribute>
,Comparator<Attribute>
-
Field Summary
Fields inherited from class gaiasky.util.gdx.shader.Environment
shadowMap
Fields inherited from class gaiasky.util.gdx.shader.attribute.Attributes
attributes, mask, sorted
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
replaceCache
(Attribute attribute) fast way to replace an attribute without sortingvoid
setCache
(Environment env) fast way to copy only referencesMethods inherited from class gaiasky.util.gdx.shader.Environment
add, add, add, add, add, add, remove, remove, remove, remove, remove, remove
Methods inherited from class gaiasky.util.gdx.shader.attribute.Attributes
attributesHash, clear, compare, compareTo, equals, get, get, getMask, has, has, hashCode, indexOf, iterator, remove, remove, same, same, set, set, set, set, set, set, size, sort
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EnvironmentCache
public EnvironmentCache()
-
-
Method Details
-
setCache
fast way to copy only references -
replaceCache
fast way to replace an attribute without sorting
-