diff engine/core/view/renderers/instancerenderer.h @ 95:0b6998fde366

speedup instance renderer; now instances can change their layer, old optimisation made wrong asumption... (fix by yonibear)
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 20 Jul 2008 19:40:21 +0000
parents 90005975cdbb
children 16c2b3ee59ce
line wrap: on
line diff
--- a/engine/core/view/renderers/instancerenderer.h	Sun Jul 20 13:17:16 2008 +0000
+++ b/engine/core/view/renderers/instancerenderer.h	Sun Jul 20 19:40:21 2008 +0000
@@ -116,12 +116,10 @@
 			~ColoringInfo();
 		};
 		typedef std::map<Instance*, OutlineInfo> InstanceToOutlines_t;
-		typedef std::map<Layer*, InstanceToOutlines_t> LayerToOutlineMap_t;
 		typedef std::map<Instance*, ColoringInfo> InstanceToColoring_t;
-		typedef std::map<Layer*, InstanceToColoring_t> LayerToColoringMap_t;
-		// mapping of layer -> instance -> outlineinfo
-		LayerToOutlineMap_t m_layer_to_outlinemap;
-		LayerToColoringMap_t m_layer_to_coloringmap;
+		
+		InstanceToOutlines_t m_instance_outlines;
+		InstanceToColoring_t m_instance_colorings;
 		
 		/** Binds new outline (if needed) to the instance's OutlineInfo
 		 */