de.grogra.imp3d.glsl.light.shadow
Class ShadowMapCollection

java.lang.Object
  extended by 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

Constructor Summary
ShadowMapCollection()
           
 
Method Summary
 void addNewShadowMapType(java.lang.Class key, GLSLShadowMap map)
           
 void cleanUp(OpenGLState glState, boolean javaonly)
           
 GLSLShadowMap getDefaultCachedMap(Light light)
           
 int getShadowMapMemoryConsumption()
           
 void initMap()
           
 void removeUnused(OpenGLState glState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowMapCollection

public ShadowMapCollection()
Method Detail

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)