Beispiel #1
0
        public static SpriteBox Add(SpriteBaseName name, Azul.Rect azulRect)
        {
            SpriteBoxManager spriteBoxMan = SpriteBoxManager.GetInstance();
            SpriteBox        spriteBox    = (SpriteBox)spriteBoxMan.BaseAdd();

            spriteBox.Set(name, azulRect.x, azulRect.y, azulRect.width, azulRect.height);
            return(spriteBox);
        }
        public static SpriteBox Add(SpriteBox.Name name, float x, float y, float width, float height, Azul.Color color)
        {
            SpriteBoxManager pMan = SpriteBoxManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            SpriteBox pSpriteBox = (SpriteBox)pMan.BaseAdd();

            Debug.Assert(pSpriteBox != null);

            // Initialize the date
            pSpriteBox.Set(name, x, y, width, height, color);
            return(pSpriteBox);
        }