2
0
ncannasse 7 жил өмнө
parent
commit
a9b8d19e07

+ 7 - 0
h3d/impl/TextureCache.hx

@@ -20,6 +20,13 @@ class TextureCache {
 		return cache[index];
 	}
 
+	public function getNamed( name : String ) {
+		for( i in 0...position )
+			if( cache[i].name == name )
+				return cache[i];
+		return null;
+	}
+
 	public function set( t, index ) {
 		cache[index] = t;
 	}