Пример #1
0
        public static GameSprite Add(GameSprite.Name spName, Image.Name imgName, float x, float y, float w, float h, Azul.Color pColor = null)
        {
            GameSpriteManager pManager = GameSpriteManager.privGetInstance();

            Debug.Assert(pManager != null);

            //grab a DLink
            GameSprite pSprite = (GameSprite)pManager.baseAdd();

            Debug.Assert(pSprite != null);

            //initialize
            Image pImage = ImageManager.Find(imgName);

            Debug.Assert(pImage != null);

            pSprite.Set(spName, pImage, x, y, w, h, pColor);

            return(pSprite);
        }