GLKMatrix4MakeOrtho(_:_:_:_:_:_:)
Returns a 4x4 orthographic projection matrix.
Declaration
func GLKMatrix4MakeOrtho(_ left: Float, _ right: Float, _ bottom: Float, _ top: Float, _ nearZ: Float, _ farZ: Float) -> GLKMatrix4Parameters
- 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.
See Also
Creating Matrices
GLKMatrix4Make(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)GLKMatrix4MakeAndTranspose(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)GLKMatrix4MakeWithArray(_:)GLKMatrix4MakeWithArrayAndTranspose(_:)GLKMatrix4MakeWithColumns(_:_:_:_:)GLKMatrix4MakeWithRows(_:_:_:_:)GLKMatrix4MakeRotation(_:_:_:_:)GLKMatrix4MakeXRotation(_:)GLKMatrix4MakeYRotation(_:)GLKMatrix4MakeZRotation(_:)GLKMatrix4MakeWithQuaternion(_:)GLKMatrix4MakeScale(_:_:_:)GLKMatrix4MakeTranslation(_:_:_:)GLKMatrix4MakeLookAt(_:_:_:_:_:_:_:_:_:)GLKMatrix4MakePerspective(_:_:_:_:)