GLKMatrixStackCreate(_:)
Allocates and returns a new matrix stack.
Declaration
func GLKMatrixStackCreate(_ alloc: CFAllocator?) -> Unmanaged<GLKMatrixStack>?Parameters
- alloc:
The allocator to use to allocate the matrix stack.
Return Value
A new matrix stack, or NULL if an error occurred.
Discussion
A matrix stack is a Core Foundation type. Ownership follows The Create Rule in Memory Management Programming Guide for Core Foundation.
A matrix stack is initialized with a single identity matrix on the top of the stack.
See Also
Functions
GLKMatrixStackGetMatrix2(_:)GLKMatrixStackGetMatrix3(_:)GLKMatrixStackGetMatrix3Inverse(_:)GLKMatrixStackGetMatrix3InverseTranspose(_:)GLKMatrixStackGetMatrix4(_:)GLKMatrixStackGetMatrix4Inverse(_:)GLKMatrixStackGetMatrix4InverseTranspose(_:)GLKMatrixStackGetTypeID()GLKMatrixStackLoadMatrix4(_:_:)GLKMatrixStackMultiplyMatrix4(_:_:)GLKMatrixStackMultiplyMatrixStack(_:_:)GLKMatrixStackPop(_:)GLKMatrixStackPush(_:)GLKMatrixStackRotate(_:_:_:_:_:)GLKMatrixStackRotateWithVector3(_:_:_:)