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));
        }
示例#2
0
        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));
        }