Module gl1

Class ShadowMapCollection

java.lang.Object
de.grogra.glsl.light.shadow.ShadowMapCollection

public class ShadowMapCollection extends 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
  • Constructor Details

    • ShadowMapCollection

      public ShadowMapCollection()
  • Method Details

    • initMap

      public void initMap()
    • getShadowMapMemoryConsumption

      public int getShadowMapMemoryConsumption()
    • addNewShadowMapType

      public void addNewShadowMapType(Class key, GLSLShadowMap map)
    • cleanUp

      public void cleanUp(OpenGLState glState, boolean javaonly)
    • removeUnused

      public void removeUnused(OpenGLState glState)
    • getDefaultCachedMap

      public GLSLShadowMap getDefaultCachedMap(Light light)