<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKMatrix4MakeOrtho(_:_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:@F@GLKMatrix4MakeOrtho"
  },
  "title" : "GLKMatrix4MakeOrtho(_:_:_:_:_:_:)"
}
-->

# GLKMatrix4MakeOrtho(_:_:_:_:_:_:)

Returns a `4x4` orthographic projection matrix.

```
func GLKMatrix4MakeOrtho(_ left: Float, _ right: Float, _ bottom: Float, _ top: Float, _ nearZ: Float, _ farZ: Float) -> GLKMatrix4
```

## Parameters

`left`

The left coordinate of the projection volume in eye coordinates.

`right`

The right coordinate of the projection volume in eye coordinates.

`bottom`

The bottom coordinate of the projection volume in eye coordinates.

`top`

The top coordinate of the projection volume in eye coordinates.

`nearZ`

The near coordinate of the projection volume in eye coordinates.

`farZ`

The far coordinate of the projection volume in eye coordinates.

## Return Value

A new projection matrix.

## Discussion

This function creates the same orthographic projection matrix previously provided in OpenGL ES 1.1 by the `glOrtho` function.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)