Type Alias

GLKTextureLoaderCallback

Signature for the block executed after an asynchronous texture loading operation completes.

Declaration

typealias GLKTextureLoaderCallback = (GLKTextureInfo?, Error?) -> Void

Discussion

The block parameters are defined as follows:

textureInfo

A texture info object that describes the loaded texture or nil if an error occurred.

error

If the operation was successful, this value is nil; otherwise, this parameter holds an object that describes the problem that occurred.