# shz_xmtrx_apply_frustum

Source: https://sh4zam.com/api/xmtrx/shz_xmtrx_apply_frustum/

```c
SHZ_INLINE void shz_xmtrx_apply_frustum(float left, float right, float bottom, float top, float znear, float zfar) SHZ_NOEXCEPT;
```

Applies a frustum projection matrix onto XMTRX, equivalent to glFrustum().

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `left` | `float` |  |
| `right` | `float` |  |
| `bottom` | `float` |  |
| `top` | `float` |  |
| `znear` | `float` |  |
| `zfar` | `float` |  |

## Returns

Nothing (`void`).

## Availability

- **C++ equivalent:** [`shz::xmtrx::apply_frustum`](https://sh4zam.com/api/cpp/xmtrx/#apply_frustum)
- **Type-generic form:** none
- **Back-ends:** SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_xmtrx.h:521`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_xmtrx.h#L521)
- **Module:** [XMTRX](https://sh4zam.com/api/xmtrx/), section "Apply Operation"
