예제 #1
0
        protected override void dispose()
        {
            foreach (KeyValuePair <string, Entry> e in detailedMaps)
            {
                ResourceHandle <TerrainTexture> tex = e.Value.Map;
                tex.Dispose();
            }
            detailedMaps.Clear();

            singleton = null;
        }
예제 #2
0
 public static void Initialize(RenderSystem device)
 {
     singleton = new MaterialLibrary(device);
 }
예제 #3
0
 public static void Initialize(RenderSystem device)
 {
     singleton = new MaterialLibrary(device);
 }
예제 #4
0
        protected override void dispose()
        {
            foreach (KeyValuePair<string, Entry> e in detailedMaps)
            {
                ResourceHandle<TerrainTexture> tex = e.Value.Map;
                tex.Dispose();
            }
            detailedMaps.Clear();

            singleton = null;
        }