Exemplo n.º 1
0
        public void Draw()
        {
            // walk through the list and render
            SpriteBatch pSpriteBatch = (SpriteBatch)BaseGetActive();

            while (pSpriteBatch != null)
            {
                if (pSpriteBatch.GetDraw())
                {
                    SpriteBaseRefManager pSpriteBaseRefManager = pSpriteBatch.GetSpriteBaseRefManager();
                    Debug.Assert(pSpriteBaseRefManager != null);

                    // Assumes that update() has been called on each sprite
                    pSpriteBaseRefManager.Draw();
                }

                pSpriteBatch = (SpriteBatch)pSpriteBatch.GetNext();
            }
        }