TextureComponentSwizzle


public final class TextureComponentSwizzle


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

Summary

Public constructors

TextureComponentSwizzle(int r, int g, int b, int a)

Public methods

final int

The source component for the view's alpha channel.

final int

The source component for the view's blue channel.

final int

The source component for the view's green channel.

final int

The source component for the view's red channel.

final void
setA(int a)

The source component for the view's alpha channel.

final void
setB(int b)

The source component for the view's blue channel.

final void
setG(int g)

The source component for the view's green channel.

final void
setR(int r)

The source component for the view's red channel.

Public constructors

TextureComponentSwizzle

Added in 1.0.0-alpha01
public TextureComponentSwizzle(int r, int g, int b, int a)

Public methods

getA

Added in 1.0.0-alpha01
public final int getA()

The source component for the view's alpha channel.

getB

Added in 1.0.0-alpha01
public final int getB()

The source component for the view's blue channel.

getG

Added in 1.0.0-alpha01
public final int getG()

The source component for the view's green channel.

getR

Added in 1.0.0-alpha01
public final int getR()

The source component for the view's red channel.

setA

Added in 1.0.0-alpha01
public final void setA(int a)

The source component for the view's alpha channel.

setB

Added in 1.0.0-alpha01
public final void setB(int b)

The source component for the view's blue channel.

setG

Added in 1.0.0-alpha01
public final void setG(int g)

The source component for the view's green channel.

setR

Added in 1.0.0-alpha01
public final void setR(int r)

The source component for the view's red channel.