示例#1
0
 public UIDrawRequest(Rectangle? Viewport, SpriteFont font, string text, Vector2 position, Color color, int layer)
 {
     type = UIDrawRequestTypes.Text;
     this.Viewport = Viewport;
     this.font = font;
     this.text = text;
     this.position = position;
     this.filterColor = color;
     this.layerDepth = layer;
 }
示例#2
0
 public UIDrawRequest(Rectangle? Viewport, Texture2D texture, Rectangle destination, Rectangle? source, Color color, int layer)
 {
     type = UIDrawRequestTypes.Texture;
     this.Viewport = Viewport;
     this.texture = texture;
     this.destination = destination;
     this.source = source;
     this.filterColor = color;
     this.layerDepth = layer;
 }