init(cgImage:)
Create a new texture object from a Quartz 2D image.
Declaration
convenience init(cgImage image: CGImage)Parameters
- image:
A Quartz 2D image (Cgimage) object. For more information, see TP30001066 and Cgimage.
Return Value
A new texture object.
Discussion
The image data is copied before control is returned to your game.