示例#1
0
        public static void Draw()
        {
            //ensure call Create() first
            SpriteBatchMan pMan = SpriteBatchMan.GetInstance();

            Debug.Assert(pMan != null);

            // get the active list
            SpriteBatch pSpriteBatch = (SpriteBatch)pMan.baseGetActiveList();

            // walk through the list and render
            while (pSpriteBatch != null)
            {
                if (pSpriteBatch.getIsDraw())
                {
                    SBNodeMan pSBNodeMan = pSpriteBatch.getSBNodeMan();
                    Debug.Assert(pSBNodeMan != null);

                    pSBNodeMan.draw();
                }

                pSpriteBatch = (SpriteBatch)pSpriteBatch.pNext;
            }
        }