# Sandbox.Rendering.HudPainter.DrawTexture

## Overload 1

```csharp
void DrawTexture(Texture texture, Rect rect)
```

Draws a texture in the specified rectangle with a white tint.

### Parameters

- `texture` (`Texture`): The texture to draw.
- `rect` (`Rect`): The rectangle to draw the texture in.

## Overload 2

```csharp
void DrawTexture(Texture texture, Rect rect, Color tint)
```

Draws a texture in the specified rectangle with a tint color.

### Parameters

- `texture` (`Texture`): The texture to draw.
- `rect` (`Rect`): The rectangle to draw the texture in.
- `tint` (`Color`): The tint color to apply to the texture.

Declared in [Sandbox.Rendering.HudPainter](/api/Sandbox.Rendering.HudPainter).
Assembly: `Sandbox.Engine`.
