Example #1
0
        public static void Destroy()
        {
            SpriteBatchMan pMan = SpriteBatchMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.PrivStatBatchDump();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("SpriteBatchMan.Destroy()");
#endif
            pMan.BaseDestroy();

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

            SpriteBatchMan.pInstance = null;
            pMan.poNodeCompare       = null;
        }