Пример #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;
        }