de.grogra.imp3d.glsl.light.shadow
Class ShadowMapCollection
java.lang.Object
de.grogra.imp3d.glsl.light.shadow.ShadowMapCollection
public class ShadowMapCollection
- extends java.lang.Object
This class is both a collection of shadow-map-prototypes and a cache for instances of
shadow-maps referenced by Light Objects. Mapping between Lights and ShadowMaps is
static but is subject to change.
- Author:
- Konni Hartmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowMapCollection
public ShadowMapCollection()
addNewShadowMapType
public void addNewShadowMapType(java.lang.Class key,
GLSLShadowMap map)
cleanUp
public void cleanUp(OpenGLState glState,
boolean javaonly)
getDefaultCachedMap
public GLSLShadowMap getDefaultCachedMap(Light light)
getShadowMapMemoryConsumption
public int getShadowMapMemoryConsumption()
initMap
public void initMap()
removeUnused
public void removeUnused(OpenGLState glState)