Edit

Share via


GLKTextureLoader.FromImage Method

Definition

Overloads

FromImage(CGImage, NSDictionary, NSError)

Loads a texture from a CGImage.

FromImage(CGImage, GLKTextureOperations, NSError)

Loads a texture from a CGImage.

FromImage(CGImage, NSDictionary, NSError)

Loads a texture from a CGImage.

[Foundation.Export("textureWithCGImage:options:error:")]
public static GLKit.GLKTextureInfo FromImage (CoreGraphics.CGImage cgImage, Foundation.NSDictionary textureOperations, out Foundation.NSError error);
static member FromImage : CoreGraphics.CGImage * Foundation.NSDictionary *  -> GLKit.GLKTextureInfo

Parameters

cgImage
CGImage

CGImage that contains the image to be loaded into the texture.

textureOperations
NSDictionary

An NSDictionary populated with configuration options. Alternatively, use the strongly-typed version of this method that takes a GLKTextureOperations object.

This parameter can be null.

error
NSError

Error result.

Returns

On error, this will return null, the details of the error will be stored in the NSError parameter. Otherwise the instance of the GLKTextureInfo be added.

Attributes

Applies to

FromImage(CGImage, GLKTextureOperations, NSError)

Loads a texture from a CGImage.

public static GLKit.GLKTextureInfo FromImage (CoreGraphics.CGImage cgImage, GLKit.GLKTextureOperations textureOperations, out Foundation.NSError error);
static member FromImage : CoreGraphics.CGImage * GLKit.GLKTextureOperations *  -> GLKit.GLKTextureInfo

Parameters

cgImage
CGImage

CGImage that contains the image to be loaded into the texture.

textureOperations
GLKTextureOperations

Operations to be performed during the image loading on the texture.

error
NSError

Error result.

Returns

On error, this will return null, the details of the error will be stored in the NSError parameter. Otherwise the instance of the GLKTextureInfo.

Applies to