Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }