Edit

Share via


GLKTextureLoader.FromData Method

Definition

Overloads

FromData(NSData, GLKTextureOperations, NSError)

Loads a texture from an NSData source.

FromData(NSData, NSDictionary, NSError)

Loads a texture from an NSData source.

FromData(NSData, GLKTextureOperations, NSError)

Loads a texture from an NSData source.

public static GLKit.GLKTextureInfo FromData (Foundation.NSData data, GLKit.GLKTextureOperations textureOperations, out Foundation.NSError error);
static member FromData : Foundation.NSData * GLKit.GLKTextureOperations *  -> GLKit.GLKTextureInfo

Parameters

data
NSData

NSData object that contains the bitmap that will 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

FromData(NSData, NSDictionary, NSError)

Loads a texture from an NSData source.

[Foundation.Export("textureWithContentsOfData:options:error:")]
public static GLKit.GLKTextureInfo FromData (Foundation.NSData data, Foundation.NSDictionary textureOperations, out Foundation.NSError error);
static member FromData : Foundation.NSData * Foundation.NSDictionary *  -> GLKit.GLKTextureInfo

Parameters

data
NSData

NSData object that contains the bitmap that will 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.

Attributes

Applies to