Contents

init(cgImage:)

Create a new texture object from a Quartz 2D image.

Declaration

convenience init(cgImage image: CGImage)

Parameters

Return Value

A new texture object.

Discussion

The image data is copied before control is returned to your game.

See Also

Texture from Image