Contents

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