Düzenle

Aracılığıyla paylaş


GLKTextureLoader.FromFile Method

Definition

Overloads

FromFile(String, NSDictionary, NSError)

Loads a texture from a file synchronously.

FromFile(String, GLKTextureOperations, NSError)

Loads a texture from a file synchronously.

FromFile(String, NSDictionary, NSError)

Loads a texture from a file synchronously.

[Foundation.Export("textureWithContentsOfFile:options:error:")]
public static GLKit.GLKTextureInfo FromFile (string path, Foundation.NSDictionary textureOperations, out Foundation.NSError error);
static member FromFile : string * Foundation.NSDictionary *  -> GLKit.GLKTextureInfo

Parameters

path
String

File name where the data will be loaded from.

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

FromFile(String, GLKTextureOperations, NSError)

Loads a texture from a file synchronously.

public static GLKit.GLKTextureInfo FromFile (string path, GLKit.GLKTextureOperations textureOperations, out Foundation.NSError error);
static member FromFile : string * GLKit.GLKTextureOperations *  -> GLKit.GLKTextureInfo

Parameters

path
String

File name where the data will be loaded from.

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