# Editor.ToolRender.Draw2DRectangleTextured

```csharp
static void Draw2DRectangleTextured(Vector2 topLeft, Vector2 bottomRight, Texture texture, bool alpha = True, bool srgb = True)
```

### Parameters

- `topLeft` (`Vector2`)
- `bottomRight` (`Vector2`)
- `texture` (`Texture`)
- `alpha` (`bool`), default `True`
- `srgb` (`bool`), default `True`

Declared in [Editor.ToolRender](/api/Editor.ToolRender).
Assembly: `Sandbox.Tools`.
