예제 #1
0
        public static void Dump()
        {
            TextureMan pMan = TextureMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.BaseDump();
        }
예제 #2
0
        public static void DumpTextures()
        {
            TextureMan pTMan = TextureMan.PrivGetInstance();

            Debug.Assert(pTMan != null);

            pTMan.BaseDumpNodes();
        }
예제 #3
0
        public static void Remove(Texture pNode)
        {
            TextureMan pMan = TextureMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            Debug.Assert(pNode != null);
            pMan.BaseRemove(pNode);
        }
예제 #4
0
        private void PrivStatDump()
        {
            TextureMan pTMan = TextureMan.PrivGetInstance();

            Debug.Assert(pTMan != null);

            Debug.WriteLine("");
            Debug.WriteLine("Texture Manager Stats-------------------------");
            Debug.WriteLine("TO SELF!! The null texture and default texture included in stats.");
            pTMan.BaseStatDump();
        }
예제 #5
0
        public static Texture Find(Texture.Name name)
        {
            TextureMan pTMan = TextureMan.PrivGetInstance();

            Debug.Assert(pTMan != null);

            pTMan.poTexCompare.SetName(name);

            Texture pTNode = (Texture)pTMan.BaseFind(pTMan.poTexCompare);

            return(pTNode);
        }
예제 #6
0
        public static Texture Find(Texture.Name name)
        {
            TextureMan pMan = TextureMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.poNodeCompare.name = name;

            Texture pData = (Texture)pMan.BaseFind(pMan.poNodeCompare);

            return(pData);
        }
예제 #7
0
        public static Texture Add(Texture.Name name, String pTexName)
        {
            TextureMan pTMan = TextureMan.PrivGetInstance();

            Debug.Assert(pTMan != null);

            Texture pTNode = (Texture)pTMan.BaseAdd();

            Debug.Assert(pTNode != null);

            Debug.Assert(pTexName != null);

            pTNode.Set(name, pTexName);
            return(pTNode);
        }
예제 #8
0
        public static Texture Find(Texture.Name name)
        {
            TextureMan pMan = TextureMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes

            // So:  Use the Compare Node - as a reference
            //      use in the Compare() function
            pMan.poNodeCompare.SetName(name);

            Texture pData = (Texture)pMan.BaseFind(pMan.poNodeCompare);

            return(pData);
        }
예제 #9
0
        public static Texture Add(Texture.Name name, String pTextureName)
        {
            TextureMan pMan = TextureMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            Texture pNode = (Texture)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            // Initialize the data
            Debug.Assert(pTextureName != null);
            pNode.Set(name, pTextureName);

            return(pNode);
        }
예제 #10
0
        public static void Destroy()
        {
            // Get the instance
            TextureMan pMan = TextureMan.PrivGetInstance();

            Debug.Assert(pMan != null);

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("--->TextureMan.Destroy()");
#endif
            pMan.BaseDestroy();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("     {0} ({1})", pMan.poNodeCompare, pMan.poNodeCompare.GetHashCode());
            Debug.WriteLine("     {0} ({1})", TextureMan.pInstance, TextureMan.pInstance.GetHashCode());
#endif

            pMan.poNodeCompare   = null;
            TextureMan.pInstance = null;
        }
예제 #11
0
        public static void Destroy()
        {
            TextureMan pTMan = TextureMan.PrivGetInstance();

            Debug.Assert(pTMan != null);

            pTMan.PrivStatDump();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("TextureMan.Destroy()");
#endif
            pTMan.BaseDestroy();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("{0} ({1})", pTMan.poTexCompare, pTMan.poTexCompare.GetHashCode());
            Debug.WriteLine("{0} ({1})", TextureMan.pInstance, TextureMan.pInstance.GetHashCode());
#endif

            pTMan.poTexCompare   = null;
            TextureMan.pInstance = null;
        }