public static BoxSprite Add(BoxSprite.Name name, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            BoxSpriteMan pMan = BoxSpriteMan.privGetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pNode = (BoxSprite)pMan.baseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name, x, y, width, height, pColor);

            return(pNode);
        }
Beispiel #2
0
        public static BoxSprite Add(BoxSprite.Name name, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            //ensure call Create() first
            BoxSpriteMan pMan = BoxSpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pBoxSprite = (BoxSprite)pMan.baseAdd();

            Debug.Assert(pBoxSprite != null);

            pBoxSprite.set(name, x, y, width, height, pColor);

            return(pBoxSprite);
        }