espresso3d.engine.lowlevel
Class E3DTextureSortedObjectMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byespresso3d.engine.lowlevel.E3DTextureSortedObjectMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class E3DTextureSortedObjectMap
extends java.util.HashMap

Author:
Curt Texturesortedtriangle maps are used pretty extensively by the engine to keep triangles group by texture so they can be sent to the gpu efficiently. This essentially a glorified hashmap. The key is the glTextureID and the value is an arraylist of triangles with textures having that key.
See Also:
Serialized Form

Constructor Summary
E3DTextureSortedObjectMap()
           
 
Method Summary
 void addAll(java.util.HashMap textureSortedHashMap)
          This will add or merge all of textureSortedHashMap's entries into this one
 void addObject(E3DTexturedRenderable renderableObject)
           
 java.lang.Object put(java.lang.Object arg0, java.lang.Object arg1)
           
 void removeObject(E3DTexturedRenderable renderableObject)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

E3DTextureSortedObjectMap

public E3DTextureSortedObjectMap()
Method Detail

addObject

public void addObject(E3DTexturedRenderable renderableObject)

addAll

public void addAll(java.util.HashMap textureSortedHashMap)
This will add or merge all of textureSortedHashMap's entries into this one


put

public java.lang.Object put(java.lang.Object arg0,
                            java.lang.Object arg1)

removeObject

public void removeObject(E3DTexturedRenderable renderableObject)