Contents

init(image:)

Create a new texture object from an image object.

Declaration

convenience init(image: UIImage)
convenience init(image: NSImage)

Parameters

  • image:

    An image.

Return Value

A new texture object.

Discussion

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

See Also

Texture from Image