Exemplo n.º 1
0
        public static SpriteBatch Find(SpriteBatchName spriteBatchName)
        {
            SpriteBatchManager spMan   = SpriteBatchManager.GetInstance();
            SpriteBatch        spBatch = (SpriteBatch)spMan.BaseFind(new SpriteBatch {
                name = spriteBatchName
            });

            return(spBatch);
        }
Exemplo n.º 2
0
        public static SpriteBatch Find(SpriteBatch.Name name)
        {
            SpriteBatchManager pMan = SpriteBatchManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.poCompareNode.name = name;

            SpriteBatch pData = (SpriteBatch)pMan.BaseFind(pMan.poCompareNode);

            Debug.Assert(pData != null);
            return(pData);
        }
Exemplo n.º 3
0
        public static SpriteBatch Find(SpriteBatch.Name name)
        {
            SpriteBatchManager pMan = SpriteBatchManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            // So:  Use the Compare Node - as a reference
            //      use in the Compare() function
            pMan.poNodeCompare.SetName(name);

            SpriteBatch pData = (SpriteBatch)pMan.BaseFind(pMan.poNodeCompare);

            return(pData);
        }
        public static SpriteBatch Find(SpriteBatch.Name name)
        {
            SpriteBatchManager pMan = SpriteBatchManager.pActiveSBMan;

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes

            // So:  Use the Compare Node - as a reference
            //      use in the Compare() function
            SpriteBatchManager.poNodeCompare.SetName(name);

            SpriteBatch pData = (SpriteBatch)pMan.BaseFind(SpriteBatchManager.poNodeCompare);

            return(pData);
        }