Class

TextureResource

A representation of a texture.

Declaration

class TextureResource

Topics

Loading a Texture

static func load(named: String, in: Bundle?) -> TextureResource

Blocks while loading a texture resource from a bundle.

static func loadAsync(named: String, in: Bundle?) -> LoadRequest<TextureResource>

Loads a texture resource from a bundle asynchronously.

static func load(contentsOf: URL, withName: String?) -> TextureResource

Blocks while loading a texture resource from a URL.

Relationships

Conforms To

See Also

Specifying Color Parameters

case color(NSColor)

A color value in macOS.

case color(UIColor)

A color value in iOS.