public static void Print()
        {
            TextureManager pTextMan = TextureManager.privGetInstance();

            Debug.Assert(pTextMan != null);

            pTextMan.basePrint();
        }
        public static void Remove(Texture pTextNode)
        {
            // grab the manager
            TextureManager pTextMan = TextureManager.privGetInstance();

            Debug.Assert(pTextMan != null);
            Debug.Assert(pTextNode != null);

            // delegate removal to the managers DLink static methods
            pTextMan.baseRemove(pTextNode);
        }
        public static Texture Find(Texture.Name targetName)
        {
            TextureManager pTextMan = TextureManager.privGetInstance();

            Debug.Assert(pTextMan != null);

            // set up the comparison node
            pTextMan.poNodeCompare.SetName(targetName);

            // delegate searching to base class
            Texture pText = (Texture)pTextMan.baseFind(pTextMan.poNodeCompare);

            return(pText);
        }
        public static Texture Add(Texture.Name theName, string pTextureName)
        {
            // grab the manager
            TextureManager pTextMan = TextureManager.privGetInstance();

            // grab an washed DLink cast as a Texture.  It is already set in place.
            Texture pTextNode = (Texture)pTextMan.baseAdd();

            // fill with values
            Debug.Assert(pTextureName != null);
            pTextNode.Set(theName, pTextureName);

            return(pTextNode);
        }
Exemple #5
0
        public static void Destroy()
        {
            // Get the instance
            TextureManager pMan = TextureManager.privGetInstance();

            Debug.WriteLine("--->TextureMan.Destroy()");
            pMan.baseDestroy();
#if (TRACK_DESTRUCTOR)
            Debug.WriteLine("     {0} ({1})", TextureMan.pTextureRef, TextureMan.pTextureRef.GetHashCode());
            Debug.WriteLine("     {0} ({1})", TextureMan.pInstance, TextureMan.pInstance.GetHashCode());
#endif
            TextureManager.pTextureRef = null;
            TextureManager.pInstance   = null;
        }