Exemplo n.º 1
0
        public static SpriteBatch Add(SpriteBatch.Name name)
        {
            SpriteBatchMan pMan = SpriteBatchMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            SpriteBatch pSBatch = (SpriteBatch)pMan.BaseAdd();

            pSBatch.SetName(name);

            return(pSBatch);
        }
Exemplo n.º 2
0
        public static SpriteBatch Add(SpriteBatch.Name name, int reserveNum = 3, int reserveGrow = 1)
        {
            SpriteBatchMan pMan = SpriteBatchMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            SpriteBatch pNode = (SpriteBatch)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name, reserveNum, reserveGrow);
            return(pNode);
        }
Exemplo n.º 3
0
        private static SpriteBatch Add(SpriteBatch.Name name, SpriteBatch pSB)
        {
            SpriteBatchMan pMan = SpriteBatchMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            SpriteBatch pNode = (SpriteBatch)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode = pSB;

            return(pSB);
        }