public void Draw(IRenderingContext renderContext)
        {
            if (texture == null)
                texture = renderContext.CreateColorResource(color);

            renderContext.Draw(texture, layer, new MegaMan.Common.Geometry.Point((int)x, (int)y),
                new MegaMan.Common.Geometry.Rectangle((int)x, (int)y, (int)width, (int)height));
        }
        public void Draw(IRenderingContext renderContext)
        {
            if (texture == null)
            {
                texture = renderContext.CreateColorResource(color);
            }

            renderContext.Draw(texture, layer, new MegaMan.Common.Geometry.Point((int)x, (int)y),
                               new MegaMan.Common.Geometry.Rectangle((int)x, (int)y, (int)width, (int)height));
        }