Loads a 2D texture image from a Quartz image and creates a new texture from the data.
- iOS 5.0–12.0Deprecated
- macOS 10.8–10.14Deprecated
- tvOS 9.0–12.0Deprecated
The Quartz image to be turned into a texture.
A dictionary that describes any additional steps you want the texture loader to take when loading the texture. See Texture Loading Options.
If an error occurs, upon return contains an
NSErrorobject that describes the problem.
If you are not interested in this information, pass
A texture info object that describes the loaded texture or
nil if an error occurred.
This class method loads the texture into the sharegroup attached to the current context for the thread this method is called on.
If the image was created using the CGBitmapImageContextCreate function, it must use one of the pixel formats described in Table 1. CGImages loaded from files typically are already in one of these formats.