Пример #1
0
        public static SpriteBatch Add(SpriteBatchName spriteBatchName)
        {
            SpriteBatchManager spBatchMan = SpriteBatchManager.GetInstance();
            SpriteBatch        spBatch    = (SpriteBatch)spBatchMan.BaseAdd();

            spBatch.name = spriteBatchName;
            return(spBatch);
        }
Пример #2
0
        public static SpriteBatch Add(SpriteBatch.Name name, int numNodes = 5, int growthSize = 2)
        {
            SpriteBatchManager pMan = SpriteBatchManager.PrivGetInstance();

            Debug.Assert(pMan != null);

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

            Debug.Assert(pNode != null);

            pNode.Set(name, numNodes, growthSize);
            return(pNode);
        }
Пример #3
0
        public static SpriteBatch Add(SpriteBatch.Name name, int reserveNum = 3, int reserveGrow = 1)
        {
            SpriteBatchManager pMan = SpriteBatchManager.PrivGetInstance();

            Debug.Assert(pMan != null);

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

            Debug.Assert(pNode != null);

            // Initialize the Data
            pNode.Set(name, reserveNum, reserveGrow);
            return(pNode);
        }