Exemplo n.º 1
0
        public SpriteBatch Add(SpriteBatch.Name name, int priority, int reserveNum = 3, int reserveGrow = 1)
        {
            //SpriteBatchMan pMan = SpriteBatchMan.privGetInstance();
            SpriteBatchMan pMan = SpriteBatchMan.pActiveSBMan;

            Debug.Assert(pMan != null);

            SpriteBatch pNode = SpriteBatchMan.privSortedAdd(priority);

            if (name == SpriteBatch.Name.Boxes)
            {
                pNode.drawSprite = false;
            }

            pNode.Set(name, priority, reserveNum, reserveGrow);

            return(pNode);
        }