Пример #1
0
        public void attach(SpriteBase pNode)
        {
            Debug.Assert(pNode != null);

            SBNode pSBNode = this.poSBNodeMan.attach(pNode);

            Debug.Assert(pSBNode != null);

            // initialize SpriteBatchNode
            pSBNode.set(pNode, this.poSBNodeMan);
        }
Пример #2
0
        public SBNode attach(SpriteBase pNode)
        {
            // get a node from reserve, add to active, return it
            SBNode pSBNode = (SBNode)this.baseAdd();

            Debug.Assert(pSBNode != null);

            // initialize SpriteBatchNode
            pSBNode.set(pNode, this);

            return(pSBNode);
        }