示例#1
0
        public static void Remove(SpriteNode pSpriteBatchNode)
        {
            SpriteNodeMan pSpriteNodeMan = pSpriteBatchNode.pBackSpriteNodeMan;

            Debug.Assert(pSpriteNodeMan != null);
            pSpriteNodeMan.Remove(pSpriteBatchNode);
        }
示例#2
0
        public static void Remove(SpriteNode pSpriteBatchNode)
        {
            Debug.Assert(pSpriteBatchNode != null);
            SpriteNodeMan pSpriteNodeMan = pSpriteBatchNode.GetSBNodeMan();

            Debug.Assert(pSpriteNodeMan != null);
            pSpriteNodeMan.Remove(pSpriteBatchNode);
        }
示例#3
0
        public void Set(SpriteBase pNode, SpriteNodeMan _pSpriteNodeMan)
        {
            this.pSpriteBase = pNode;

            // Set the back pointer
            // Allows easier deletion in the future
            this.pSpriteBase.SetSpriteNode(this);

            this.pBackSpriteNodeMan = _pSpriteNodeMan;
        }
示例#4
0
        public void Set(SpriteBase pNode, SpriteNodeMan _pSpriteNodeMan)
        {
            Debug.Assert(pNode != null);
            this.pSpriteBase = pNode;

            // Set the back pointer
            // Allows easier deletion in the future
            Debug.Assert(pSpriteBase != null);
            this.pSpriteBase.SetSpriteNode(this);

            Debug.Assert(_pSpriteNodeMan != null);
            this.pBackSpriteNodeMan = _pSpriteNodeMan;
        }
示例#5
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;
            }
        }
示例#6
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;
            }
        }
示例#7
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;
            }
        }
示例#8
0
 public SpriteNode()
     : base()
 {
     this.pSpriteBase        = null;
     this.pBackSpriteNodeMan = null;
 }
示例#9
0
 public void Wash()
 {
     this.pSpriteBase        = null;
     this.pBackSpriteNodeMan = null;
 }