Loads a cube map texture image from a single URL and creates a new texture from the data.
- iOS 5.0–12.0Deprecated
- macOS 10.8–10.14Deprecated
- tvOS 9.0–12.0Deprecated
A path to the image to load.
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.
The file is assumed to be a single image that includes the six faces of the cube map. The image’s height must be six times the width, and the images should be arranged in the following order from top to bottom: Right(+x), Left(-x), Top(+y), Bottom(-y), Front(+z), Back(-z). This coordinate system is left-handed if you think of yourself within the cube. The coordinate system is right-handed if you think of yourself outside of the cube.
Alternatively, the image can have a width that is six times the height, and arranged from left to right, but this takes additional processing to load.
This class method loads the texture into the sharegroup attached to the current context for the thread this method is called on.