Exemplo n.º 1
0
        public static void Draw()
        {
            SpriteBatch pSpriteBatch = (SpriteBatch)SpriteBatchMan.pActiveSBMan.baseGetActive();

            while (pSpriteBatch != null)
            {
                if (pSpriteBatch.bRenderEnabled == true)
                {
                    SpriteNodeMan pSBNodeMan = pSpriteBatch.GetSpriteNodeMan();
                    Debug.Assert(pSBNodeMan != null);
                    pSBNodeMan.Draw();
                }
                pSpriteBatch = (SpriteBatch)pSpriteBatch.pNext;
            }
        }
Exemplo n.º 2
0
        public static void Draw()
        {
            Debug.Assert(pMan != null);

            // walk through the list and render
            SpriteBatch pSpriteBatch = (SpriteBatch)pMan.poActive;

            while (pSpriteBatch != null)
            {
                SpriteNodeMan pSBNodeMan = pSpriteBatch.GetSpriteNodeMan();
                Debug.Assert(pSBNodeMan != null);

                // Kick the can
                pSBNodeMan.Draw();

                pSpriteBatch = (SpriteBatch)pSpriteBatch.pNext;
            }
        }
Exemplo n.º 3
0
        public static void Draw()
        {
            //SpriteBatchMan pMan = SpriteBatchMan.privGetInstance();
            SpriteBatchMan pMan = SpriteBatchMan.pActiveSBMan;

            Debug.Assert(pMan != null);

            SpriteBatch pSpriteBatch = (SpriteBatch)pMan.baseGetActive();

            while (pSpriteBatch != null)
            {
                SpriteNodeMan pSBNodeMan = pSpriteBatch.GetSBNodeMan();
                Debug.Assert(pSBNodeMan != null);

                if (pSpriteBatch.drawSprite == true)
                {
                    pSBNodeMan.Draw();
                }

                pSpriteBatch = (SpriteBatch)pSpriteBatch.pNext;
            }
        }