示例#1
0
 private Texture2D CreateTexture(GraphicsDevice graphicsDevice, Rectangle bounds, Color color)
 {
     var texture = new Texture2D(graphicsDevice, bounds.Width, bounds.Height);
     texture.FillWithColor(color);
     texture.AddBorder(Color.Black, 1);
     return texture;
 }