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; }
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; }