Texture.build

Use this method to build the correct Texture based on the Backend being used.

class Texture
static @safe
build
(,
in string name
,
in string filename
,
in bool useAlpha = true
)

Parameters

filename string

The location where the texture file is.

useAlpha bool

Defaults to true. If the image's colors or other features look strange, try tweaking this value.

Return Value

Type: Texture

A new loaded Texture instance using the selected backend.

Meta