TextureComponentSwizzle


class TextureComponentSwizzle


Defines how the color components of a texture are remapped for a texture view.

Summary

Public constructors

TextureComponentSwizzle(r: Int, g: Int, b: Int, a: Int)

Public properties

Int

The source component for the view's alpha channel.

Int

The source component for the view's blue channel.

Int

The source component for the view's green channel.

Int

The source component for the view's red channel.

Public constructors

TextureComponentSwizzle

Added in 1.0.0-alpha01
TextureComponentSwizzle(
    r: Int = ComponentSwizzle.R,
    g: Int = ComponentSwizzle.G,
    b: Int = ComponentSwizzle.B,
    a: Int = ComponentSwizzle.A
)

Public properties

a

Added in 1.0.0-alpha01
var aInt

The source component for the view's alpha channel.

b

Added in 1.0.0-alpha01
var bInt

The source component for the view's blue channel.

g

Added in 1.0.0-alpha01
var gInt

The source component for the view's green channel.

r

Added in 1.0.0-alpha01
var rInt

The source component for the view's red channel.